From 5a7abc0ed6323daca9cdb642712d842b2f98a8f4 Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Sun, 27 Feb 2022 22:21:18 -0800 Subject: [PATCH] Setup QEMU in the docker workflow. --- .../workflows/docker-hub-build-push-on-release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-hub-build-push-on-release.yml b/.github/workflows/docker-hub-build-push-on-release.yml index cb47b9c..38a3096 100644 --- a/.github/workflows/docker-hub-build-push-on-release.yml +++ b/.github/workflows/docker-hub-build-push-on-release.yml @@ -22,15 +22,18 @@ jobs: RELEASE_VERSION=${GITHUB_REF#refs/*/} echo "::set-output name=image_tag::${RELEASE_VERSION}" echo "Action image_tag=${RELEASE_VERSION}" - + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Install buildx + uses: docker/setup-buildx-action@v1.6.0 + - name: Login to docker hub uses: docker/login-action@v1.13.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Install buildx - uses: docker/setup-buildx-action@v1.6.0 - name: Build and push ${{ github.repository }}:${{ steps.git.outputs.image_tag }} uses: docker/build-push-action@v2.9.0