fix: Only push containers if docker login success.
This commit is contained in:
parent
d69745c8be
commit
e21ed8231a
2
.github/workflows/containers.yml
vendored
2
.github/workflows/containers.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user