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 }} +