fixes to imagen
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user