fix: Only push containers if docker login success.

This commit is contained in:
Peter Johanson 2022-04-16 00:33:45 -04:00
parent d69745c8be
commit e21ed8231a

View File

@ -434,6 +434,7 @@ jobs:
shell: bash shell: bash
run: docker stop candidate run: docker stop candidate
- name: Build and push 'build' candidate image (x86_64 and arm64) - name: Build and push 'build' candidate image (x86_64 and arm64)
if: ${{ steps.docker-hub-login.outcome == 'success' }}
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
target: build target: build
@ -456,6 +457,7 @@ jobs:
cache-to: type=inline cache-to: type=inline
push: true push: true
- name: Build and push 'dev' candidate image (x86_64 + arm64) - name: Build and push 'dev' candidate image (x86_64 + arm64)
if: ${{ steps.docker-hub-login.outcome == 'success' }}
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
target: dev target: dev