Spaces:
Sleeping
Sleeping
execute build and push only if workflow succeed
Browse files
.github/workflows/build-and-push-docker.yaml
CHANGED
|
@@ -29,6 +29,7 @@ jobs:
|
|
| 29 |
uses: docker/setup-buildx-action@v3
|
| 30 |
-
|
| 31 |
name: Build and push
|
|
|
|
| 32 |
uses: docker/build-push-action@v6
|
| 33 |
with:
|
| 34 |
context: .
|
|
|
|
| 29 |
uses: docker/setup-buildx-action@v3
|
| 30 |
-
|
| 31 |
name: Build and push
|
| 32 |
+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
| 33 |
uses: docker/build-push-action@v6
|
| 34 |
with:
|
| 35 |
context: .
|