From e21ed8231ab5108b44407f56d222617ec9cc2abf Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Sat, 16 Apr 2022 00:33:45 -0400 Subject: [PATCH] fix: Only push containers if docker login success. --- .github/workflows/containers.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index d9702b2..9fa9429 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -434,6 +434,7 @@ jobs: shell: bash run: docker stop candidate - name: Build and push 'build' candidate image (x86_64 and arm64) + if: ${{ steps.docker-hub-login.outcome == 'success' }} uses: docker/build-push-action@v2 with: target: build @@ -456,6 +457,7 @@ jobs: cache-to: type=inline push: true - name: Build and push 'dev' candidate image (x86_64 + arm64) + if: ${{ steps.docker-hub-login.outcome == 'success' }} uses: docker/build-push-action@v2 with: target: dev