From 51228655ef8fb3698c0adbfaa6fa59ad3589e2ee Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 14 Apr 2025 16:45:51 +0200 Subject: [PATCH] Actualiser action.yaml --- action.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/action.yaml b/action.yaml index f658a5b..232f80e 100644 --- a/action.yaml +++ b/action.yaml @@ -179,3 +179,21 @@ runs: push_command: '${{ inputs.tag_command }}' debug: ${{ inputs.debug }} + - name: Push image failed + if: failure() && inputs.check_server != '' && inputs.check_uuid != '' + uses: https://gargoton.petite-maison-orange.fr/pmo-actions/healthchecks-ping@main + with: + check_server: ${{ inputs.check_server }} + check_uuid: ${{ inputs.check_uuid }} + check_command: fail + check_message: 'Failed to push docker image for ${{ inputs.image_name }}' + debug: ${{ inputs.debug }} + + - name: End of the image building + if: inputs.check_server != '' && inputs.check_uuid != '' + uses: https://gargoton.petite-maison-orange.fr/pmo-actions/healthchecks-ping@main + with: + check_server: ${{ inputs.check_server }} + check_uuid: ${{ inputs.check_uuid }} + check_command: stop + check_message: 'Docker image for ${{ inputs.image_name }}: task done'