fix(workflow-build): Optimize setps order
This commit is contained in:
parent
e3fa2f40e9
commit
ac7aa8eecd
@ -20,6 +20,13 @@ jobs:
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install docker.io -y
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
@ -28,12 +35,6 @@ jobs:
|
||||
driver-opts: network=host
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user