Actualiser .gitea/workflows/build-push.yaml
This commit is contained in:
@@ -41,7 +41,7 @@ jobs:
|
||||
docker build --tag gargoton.petite-maison-orange.fr/image/blueskycrossposter:latest .
|
||||
|
||||
- name: Build image failed
|
||||
if: failed()
|
||||
if: failure()
|
||||
run: |
|
||||
curl -fsS -m 10 --retry 5 \
|
||||
--data-raw "Failed to build docker image for $(cat bluesky_crossposter_latest.txt)" \
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
docker push gargoton.petite-maison-orange.fr/image/blueskycrossposter:latest
|
||||
|
||||
- name: Push image failed
|
||||
if: failed()
|
||||
if: failure()
|
||||
run: |
|
||||
curl -fsS -m 10 --retry 5 \
|
||||
--data-raw "Failed to push docker image for $(cat bluesky_crossposter_latest.txt)" \
|
||||
@@ -68,4 +68,13 @@ jobs:
|
||||
--data-raw "Build docker image for $(cat bluesky_crossposter_latest.txt)" \
|
||||
https://haoma.petite-maison-orange.fr/ping/814308c3-d90c-4511-b236-c40b37a5ad23
|
||||
shell: bash
|
||||
- name: Canceled building
|
||||
if: cancelled()
|
||||
run: |
|
||||
curl -fsS -m 10 --retry 5 \
|
||||
--data-raw "Building image cancelled for $(cat bluesky_crossposter_latest.txt)" \
|
||||
https://haoma.petite-maison-orange.fr/ping/814308c3-d90c-4511-b236-c40b37a5ad23/fail
|
||||
exit 1
|
||||
shell: bash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user