Actualiser .gitea/workflows/build-push.yaml
All checks were successful
Check BlueSky Crossposter version / check-version (push) Successful in 16s

This commit is contained in:
2025-04-05 22:52:29 +02:00
parent 7b0367a9ec
commit dbc6f0c639

View File

@@ -10,10 +10,23 @@ 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: Set up Docker Buildx
- 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
- name: Log in to Gitea Docker Registry
@@ -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
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