generated from pmo-actions/healthchecks-ping
Actualiser action.yaml
This commit is contained in:
30
action.yaml
30
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 }}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user