Actualiser action.yaml

This commit is contained in:
2025-04-14 11:36:00 +02:00
parent a9504f833c
commit dbdcae7de1

View File

@@ -47,7 +47,9 @@ runs:
check_command ${{ inputs.build_command }}
tags=(${{ inputs.image_tags }})
IFS=' ' read -r -a tags <<< "${{ inputs.image_tags }}"
debug "Tags parsed: ${tags[*]}"
sep=""
if [[ -n "${tags[0]}" ]] ; then
sep=":"
@@ -62,10 +64,16 @@ runs:
shell: bash
run: |
source "${{ github.action_path }}/bashlib.sh"
tags=(${{ inputs.image_tags }})
check_command ${{ inputs.tag_command }}
IFS=' ' read -r -a tags <<< "${{ inputs.image_tags }}"
sep=""
if [[ -n "${tags[0]}" ]] ; then
sep=":"
fi
image=${{ inputs.registry_server }}/${{ inputs.image_name }}${sep}${tags[0]}
if [[ "${{ inputs.build_command }}" != "${{ inputs.tag_command }}" ]] ; then