generated from pmo-actions/healthchecks-ping
Actualiser action.yaml
This commit is contained in:
11
action.yaml
11
action.yaml
@@ -13,6 +13,10 @@ inputs:
|
|||||||
description: 'should I add a tag corresponding to the version of the packaged software'
|
description: 'should I add a tag corresponding to the version of the packaged software'
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
|
version_tag_prefix:
|
||||||
|
description: 'Prefix added to the version to build the version tag'
|
||||||
|
required: false
|
||||||
|
default: 'pmo'
|
||||||
build_command:
|
build_command:
|
||||||
description: 'Command used to build the image (docker|podman)'
|
description: 'Command used to build the image (docker|podman)'
|
||||||
required: false
|
required: false
|
||||||
@@ -134,7 +138,12 @@ runs:
|
|||||||
if: inputs.add_version_tag == 'true'
|
if: inputs.add_version_tag == 'true'
|
||||||
run: |
|
run: |
|
||||||
source "${{ github.action_path }}/../bashlib.sh"
|
source "${{ github.action_path }}/../bashlib.sh"
|
||||||
echo "IMAGE_TAGS=${{ env.IMAGE_TAGS }} pmo-${{ steps.get_version.outputs.version }}" >> $GITHUB_ENV
|
if [[ -n '${{ inputs.version_tag_prefix }}']]
|
||||||
|
prefix="${{ inputs.version_tag_prefix }}-"
|
||||||
|
else
|
||||||
|
prefix=""
|
||||||
|
fi
|
||||||
|
echo "IMAGE_TAGS=${{ env.IMAGE_TAGS }} ${prefix}${{ steps.get_version.outputs.version }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build and tag image
|
- name: Build and tag image
|
||||||
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-image@main
|
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-image@main
|
||||||
|
|||||||
Reference in New Issue
Block a user