diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 542dd4c..1d9e549 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -37,19 +37,18 @@ jobs: run: | echo "::set-output name=docker_tag::${{ env.DOCKER_TAG }}" + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to DockerHub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push Docker image - uses: docker/build-push-action@v3.0.0 - with: - context: . - tags: ${{ env.DOCKER_IMAGE_REPOSITORY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ steps.branch-name.outputs.current_branch }}, ${{ env.DOCKER_IMAGE_REPOSITORY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_TAG }} - file: ${{ env.DOCKER_FILE}} - - name: Build and push Docker image uses: docker/build-push-action@v3.0.0 with: @@ -57,6 +56,7 @@ jobs: context: . tags: ${{ env.DOCKER_IMAGE_REPOSITORY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ steps.branch-name.outputs.current_branch }}, ${{ env.DOCKER_IMAGE_REPOSITORY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_TAG }} file: ${{ env.DOCKER_FILE}} + platforms: linux/amd64,linux/arm64 - name: Running on the default branch. if: steps.branch-name.outputs.is_default == 'true'