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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user