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
1 changed files with 3 additions and 1 deletions

View File

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