Skip to content

Commit

Permalink
fix: set profile when calling aws ecr put-lifecycle-policy (CircleCI-…
Browse files Browse the repository at this point in the history
  • Loading branch information
toini authored Dec 5, 2023
1 parent 781f911 commit a9ca2ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/docker_buildx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9ca2ca

Please sign in to comment.