updated aws_ecr_tag_image.sh

pull/2/head
Hari Sekhon 3 years ago
parent 3b1c2aaa40
commit b32bd79f4c

@ -59,9 +59,11 @@ if ! [[ "$image_tag" =~ : ]] &&
fi
tstamp "getting manifest for image '$image:$tag'"
manifest="$(aws ecr batch-get-image --repository-name "$image" --image-ids "imageTag=$tag" --query 'images[].imageManifest' --output text)"
if is_blank "$manifest"; then
die "ERROR: no manifest returned, did you specify a valid image tag?"
fi
tstamp "tagging image '$image:$tag' with new tag '$new_tag'"
if [ -n "${FORCE:-}" ]; then

Loading…
Cancel
Save