diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index fbe0b94..12dc5c0 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -40,7 +40,7 @@ jobs: with: server: ${{ env.CHECK_SERVER }} uuid: ${{ env.CHECK_UUID }} - command: log + command: start message: 'Buildind docker image for $(cat ${{ env.RELEASE_FILE }})' @@ -80,21 +80,21 @@ jobs: - name: Canceled building if: cancelled() - run: | - curl -fsS -m 10 --retry 5 \ - --data-raw "Building image cancelled for $(cat ${{ env.RELEASE_FILE }})" \ - ${{ env.CHECK }}/fail - exit 1 - shell: bash + uses: https://gargoton.petite-maison-orange.fr/pmo-actions/healthchecks-ping@main + with: + server: ${{ env.CHECK_SERVER }} + uuid: ${{ env.CHECK_UUID }} + command: fail + message: 'Building image cancelled for $(cat ${{ env.RELEASE_FILE }})' - name: Build image failed if: failure() - run: | - curl -fsS -m 10 --retry 5 \ - --data-raw "Failed to build docker image for $(cat ${{ env.RELEASE_FILE }})" \ - ${{ env.CHECK }}/fail - exit 1 - shell: bash + uses: https://gargoton.petite-maison-orange.fr/pmo-actions/healthchecks-ping@main + with: + server: ${{ env.CHECK_SERVER }} + uuid: ${{ env.CHECK_UUID }} + command: fail + message: 'Failed to build docker image for $(cat ${{ env.RELEASE_FILE }})' - name: Push image to registry run: | @@ -105,17 +105,20 @@ jobs: - name: Push image failed if: failure() - run: | - curl -fsS -m 10 --retry 5 \ - --data-raw "Failed to push docker image for $(cat ${{ env.RELEASE_FILE }})" \ - ${{ env.CHECK }}/fail - exit 1 - shell: bash + uses: https://gargoton.petite-maison-orange.fr/pmo-actions/healthchecks-ping@main + with: + server: ${{ env.CHECK_SERVER }} + uuid: ${{ env.CHECK_UUID }} + command: fail + message: 'Failed to push docker image for $(cat ${{ env.RELEASE_FILE }})' + + - name: End of the image building + uses: https://gargoton.petite-maison-orange.fr/pmo-actions/healthchecks-ping@main + with: + server: ${{ env.CHECK_SERVER }} + uuid: ${{ env.CHECK_UUID }} + command: stop + message: 'Docker image for $(cat ${{ env.RELEASE_FILE }}) built and pushed' + - - name: End of the job - run: | - curl -fsS -m 10 --retry 5 \ - --data-raw "Build docker image for $(cat ${{ env.RELEASE_FILE }})" \ - ${{ env.CHECK }} - shell: bash \ No newline at end of file