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 }} check_command ${{ inputs.build_command }}
tags=(${{ inputs.image_tags }}) IFS=' ' read -r -a tags <<< "${{ inputs.image_tags }}"
debug "Tags parsed: ${tags[*]}"
sep="" sep=""
if [[ -n "${tags[0]}" ]] ; then if [[ -n "${tags[0]}" ]] ; then
sep=":" sep=":"
@@ -59,13 +61,19 @@ runs:
&& success "Image build" "${{ inputs.image_name }}" && success "Image build" "${{ inputs.image_name }}"
- name: tag images - name: tag images
shell: bash shell: bash
run: | run: |
source "${{ github.action_path }}/bashlib.sh" source "${{ github.action_path }}/bashlib.sh"
tags=(${{ inputs.image_tags }})
check_command ${{ inputs.tag_command }} 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]} image=${{ inputs.registry_server }}/${{ inputs.image_name }}${sep}${tags[0]}
if [[ "${{ inputs.build_command }}" != "${{ inputs.tag_command }}" ]] ; then if [[ "${{ inputs.build_command }}" != "${{ inputs.tag_command }}" ]] ; then