Actualiser .gitea/workflows/build-push.yaml
All checks were successful
Check BlueSky Crossposter version / check-version (push) Successful in 16s
All checks were successful
Check BlueSky Crossposter version / check-version (push) Successful in 16s
This commit is contained in:
@@ -10,9 +10,22 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Start the job
|
||||
run: |
|
||||
curl -fsS -m 10 --retry 5 \
|
||||
https://haoma.petite-maison-orange.fr/ping/814308c3-d90c-4511-b236-c40b37a5ad23/start
|
||||
shell: bash
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build image starting
|
||||
run: |
|
||||
curl -fsS -m 10 --retry 5 \
|
||||
--data-raw "Buildind docker image for $(cat bluesky_crossposter_latest.txt)" \
|
||||
https://haoma.petite-maison-orange.fr/ping/814308c3-d90c-4511-b236-c40b37a5ad23/log
|
||||
shell: bash
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
@@ -27,6 +40,32 @@ jobs:
|
||||
run: |
|
||||
docker build --tag gargoton.petite-maison-orange.fr/image/blueskycrossposter:latest .
|
||||
|
||||
- name: Build image failed
|
||||
if: failed()
|
||||
run: |
|
||||
curl -fsS -m 10 --retry 5 \
|
||||
--data-raw "Failed to build docker image for $(cat bluesky_crossposter_latest.txt)" \
|
||||
https://haoma.petite-maison-orange.fr/ping/814308c3-d90c-4511-b236-c40b37a5ad23/fail
|
||||
exit 1
|
||||
shell: bash
|
||||
|
||||
- name: Push Docker image
|
||||
run: |
|
||||
docker push gargoton.petite-maison-orange.fr/image/blueskycrossposter:latest
|
||||
|
||||
- name: Push image failed
|
||||
if: failed()
|
||||
run: |
|
||||
curl -fsS -m 10 --retry 5 \
|
||||
--data-raw "Failed to push docker image for $(cat bluesky_crossposter_latest.txt)" \
|
||||
https://haoma.petite-maison-orange.fr/ping/814308c3-d90c-4511-b236-c40b37a5ad23/fail
|
||||
exit 1
|
||||
shell: bash
|
||||
|
||||
- name: End of the job
|
||||
run: |
|
||||
curl -fsS -m 10 --retry 5 \
|
||||
--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
|
||||
|
||||
Reference in New Issue
Block a user