Actualiser .gitea/workflows/build-push.yaml
All checks were successful
Check BlueSky Crossposter version / check-version (push) Successful in 15s
Build and Push Docker Image / build (push) Successful in 1m31s

This commit is contained in:
2025-04-13 23:32:16 +02:00
parent 4f9ec40796
commit ff8bdf5128

View File

@@ -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