generated from pmo-actions/healthchecks-ping
Actualiser action.yaml
This commit is contained in:
18
action.yaml
18
action.yaml
@@ -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=":"
|
||||
@@ -59,13 +61,19 @@ runs:
|
||||
&& success "Image build" "${{ inputs.image_name }}"
|
||||
|
||||
- name: tag images
|
||||
shell: bash
|
||||
run: |
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user