mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Correctly set tag for images without minor tools
This commit is contained in:
parent
8fff315864
commit
8b1b51a97c
2 changed files with 7 additions and 1 deletions
|
|
@ -344,6 +344,7 @@ function build_custom_if_needed() {
|
||||||
printf "\t%s" "$docker_command"
|
printf "\t%s" "$docker_command"
|
||||||
eval $docker_command
|
eval $docker_command
|
||||||
printf "\n\nSUCCESS - Successfully built:\n\t%s" "$full_image_name"
|
printf "\n\nSUCCESS - Successfully built:\n\t%s" "$full_image_name"
|
||||||
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
build_custom_if_needed $@
|
build_custom_if_needed $@
|
||||||
|
|
|
||||||
|
|
@ -25,5 +25,10 @@ function get_image_tag() {
|
||||||
tag="${tag}-${tool,,}-${!tool}"
|
tag="${tag}-${tool,,}-${!tool}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "${tag:1}"
|
|
||||||
|
if [[ -n "$tag" ]]; then
|
||||||
|
echo "${tag:1}"
|
||||||
|
else
|
||||||
|
echo "latest"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue