File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 21
21
ENCRYPTION_CONFIGURATION+=" ,kmsKey=${AWS_ECR_EVAL_ENCRYPTION_KMS_KEY} "
22
22
fi
23
23
24
- if [ -z " ${AWS_ECR_EVAL_REPO_TAG} " ]; then
25
- AWS_ECR_EVAL_REPO_TAG=" {\" Key\" : \" Name\" , \" Value\" : \" " ${AWS_ECR_EVAL_REPO} \" " }"
24
+ if [ -n " ${AWS_ECR_EVAL_REPO_TAG} " ]; then
25
+ set -- " $@ " --tags
26
+ set -- " $@ " " ${AWS_ECR_EVAL_REPO_TAG} "
26
27
fi
27
-
28
28
aws ecr describe-repositories \
29
29
--profile " ${AWS_ECR_EVAL_PROFILE_NAME} " \
30
30
--region " ${AWS_ECR_EVAL_REGION} " \
36
36
--image-tag-mutability " ${AWS_ECR_EVAL_IMAGE_TAG_MUTABILITY} " \
37
37
--image-scanning-configuration " ${IMAGE_SCANNING_CONFIGURATION} " \
38
38
--encryption-configuration " ${ENCRYPTION_CONFIGURATION} " \
39
- --tags " ${AWS_ECR_EVAL_REPO_TAG} "
39
+ " $@ "
40
40
fi
You can’t perform that action at this time.
0 commit comments