fixes to imagen

This commit is contained in:
Madison Grubb
2026-03-13 11:17:38 -04:00
parent 2456195fbc
commit 7df63f21aa
7 changed files with 38 additions and 103 deletions
+6 -19
View File
@@ -146,25 +146,12 @@ if [ -z "$from_image" ] || [ -z "$from_tag" ]; then
exit 1
fi
if [ "$push" = true ]; then
# Combine tags and tag (if provided)
all_tags=$tags
if [ -n "$tag" ]; then
if [ -z "$all_tags" ]; then
all_tags=$tag
else
all_tags="$all_tags $tag"
fi
fi
else
# Even when not pushing, honor --tag so the local image is named.
all_tags=$tags
if [ -n "$tag" ]; then
if [ -z "$all_tags" ]; then
all_tags=$tag
else
all_tags="$all_tags $tag"
fi
all_tags=$tags
if [ -n "$tag" ]; then
if [ -z "$all_tags" ]; then
all_tags=$tag
else
all_tags="$all_tags $tag"
fi
fi