diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index 498ad60..919cee5 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -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 \ No newline at end of file + 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 + \ No newline at end of file