immagebuilder: fix bug in custom tag name code

This commit is contained in:
Starbeamrainbowlabs 2021-09-19 14:49:01 +01:00
parent 1010751721
commit d01d1a1c02
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -124,6 +124,8 @@ case "${subcommand}" in
docker_tag="${docker_tag}:${imagetag}"; docker_tag="${docker_tag}:${imagetag}";
fi fi
echo -e "[${HOSTNAME}:imagebuilder] Fully qualified tag name: ${HC}${FGRN}${docker_tag}${RS}";
imagetype="$(tr -d "[:blank:]" <"${imagedir}/type.txt")"; imagetype="$(tr -d "[:blank:]" <"${imagedir}/type.txt")";
case "${imagetype}" in case "${imagetype}" in
@ -205,7 +207,7 @@ case "${subcommand}" in
task_begin "Tagging and pushing to registry"; task_begin "Tagging and pushing to registry";
execute docker tag "${docker_tag_local}" "${docker_tag}"; execute docker tag "${docker_tag_local}" "${docker_tag}";
execute docker push "${docker_tag_push}"; execute docker push "${docker_tag}";
task_end "$?"; task_end "$?";
;; ;;