From 73e5eddbfb7dc51d3a57297cf47add87bbae4ad3 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 14 Apr 2025 16:31:02 +0200 Subject: [PATCH] Actualiser action.yaml --- action.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/action.yaml b/action.yaml index 035af73..78b7b4e 100644 --- a/action.yaml +++ b/action.yaml @@ -137,4 +137,34 @@ runs: tag_command: '${{ inputs.tag_command }}' debug: ${{ inputs.debug }} + - name: Canceled building + if: cancelled() && 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: 'Building image cancelled for ${{ inputs.image_name }}' + debug: ${{ inputs.debug }} + + - name: Build 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 build docker image for ${{ inputs.image_name }}' + debug: ${{ inputs.debug }} + + - name: Image built and tagged + 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: log + check_message: 'Docker image for ${{ inputs.image_name }} built and tagged' + debug: ${{ inputs.debug }} +