From a0b68f3aa35e90a63c567dd84d489f49a73bb595 Mon Sep 17 00:00:00 2001 From: Andreas Heinrich Date: Tue, 9 Jul 2024 07:50:48 +0200 Subject: [PATCH] fix Signed-off-by: Andreas Heinrich --- .github/workflows/deploy-single-docker-image.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-single-docker-image.yml b/.github/workflows/deploy-single-docker-image.yml index 81ffc51..80307d7 100644 --- a/.github/workflows/deploy-single-docker-image.yml +++ b/.github/workflows/deploy-single-docker-image.yml @@ -157,7 +157,6 @@ jobs: build-and-push: name: Build and push needs: check - if: ${{ needs.check.outputs.rebuild == 'true' || inputs.force_rebuild }} runs-on: ubuntu-22.04 outputs: image_tags: ${{ steps.meta.outputs.tags }} @@ -200,19 +199,23 @@ jobs: ${{ inputs.docker_registry }}/${{ github.repository_owner }}/${{ inputs.image_name }} - name: Set up QEMU uses: docker/setup-qemu-action@v1 + if: ${{ needs.check.outputs.rebuild == 'true' || inputs.force_rebuild }} with: image: tonistiigi/binfmt:latest platforms: all - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + if: ${{ needs.check.outputs.rebuild == 'true' || inputs.force_rebuild }} - name: Login to DockerHub uses: docker/login-action@v2 + if: ${{ needs.check.outputs.rebuild == 'true' || inputs.force_rebuild }} with: registry: ${{ inputs.docker_registry }} username: ${{ secrets.SA_GITHUB_USERNAME }} password: ${{ secrets.SA_GITHUB_PAT }} - name: Build and push uses: docker/build-push-action@v3 + if: ${{ needs.check.outputs.rebuild == 'true' || inputs.force_rebuild }} with: context: ${{ steps.get-context.outputs.path }} file: ${{ steps.get-context.outputs.path }}/${{ inputs.docker_file_name }}