From a9ca2ca3029cc73b5f92205fafda371dafedecfb Mon Sep 17 00:00:00 2001 From: Toni Juvani Date: Tue, 5 Dec 2023 22:29:18 +0200 Subject: [PATCH] fix: set profile when calling aws ecr put-lifecycle-policy (#311) (#312) --- src/scripts/docker_buildx.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/docker_buildx.sh b/src/scripts/docker_buildx.sh index 0ffc417..a54acc5 100644 --- a/src/scripts/docker_buildx.sh +++ b/src/scripts/docker_buildx.sh @@ -55,6 +55,7 @@ if [ "${ORB_BOOL_SKIP_WHEN_TAGS_EXIST}" -eq "0" ] || [[ "${ORB_BOOL_SKIP_WHEN_TA if [ -n "${ORB_STR_LIFECYCLE_POLICY_PATH}" ]; then aws ecr put-lifecycle-policy \ + --profile "${ORB_STR_PROFILE_NAME}" \ --repository-name "${ORB_STR_REPO}" \ --lifecycle-policy-text "file://${ORB_STR_LIFECYCLE_POLICY_PATH}" fi