Setup QEMU in the docker workflow.

This commit is contained in:
Shizun Ge 2022-02-27 22:21:18 -08:00 committed by GitHub
parent 3a741ec512
commit 5a7abc0ed6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,15 +23,18 @@ jobs:
echo "::set-output name=image_tag::${RELEASE_VERSION}" echo "::set-output name=image_tag::${RELEASE_VERSION}"
echo "Action 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 - name: Login to docker hub
uses: docker/login-action@v1.13.0 uses: docker/login-action@v1.13.0
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }} 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 }} - name: Build and push ${{ github.repository }}:${{ steps.git.outputs.image_tag }}
uses: docker/build-push-action@v2.9.0 uses: docker/build-push-action@v2.9.0
with: with: