Skip to content

Commit 6d7fdba

Browse files
committed
Use ECR credential helper when ECR plugin is enabled
1 parent 3575faf commit 6d7fdba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packer/linux/conf/buildkite-agent/hooks/environment

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ fi
109109
if [[ "${BUILDKITE_ECR_POLICY:-}" != "none" && "${ECR_PLUGIN_ENABLED:-}" == "1" ]]; then
110110
export BUILDKITE_PLUGIN_ECR_LOGIN=1
111111
export BUILDKITE_PLUGIN_ECR_RETRIES=3
112+
export BUILDKITE_PLUGIN_ECR_CREDENTIAL_HELPER=true
112113

113114
# map AWS_ECR_LOGIN_REGISTRY_IDS into the plugin list format
114115
if [[ -n "${AWS_ECR_LOGIN_REGISTRY_IDS:-}" ]]; then

packer/windows/conf/buildkite-agent/hooks/environment

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ fi
5555
if [[ "${BUILDKITE_ECR_POLICY:-}" != "none" && "${ECR_PLUGIN_ENABLED:-}" == "1" ]]; then
5656
export BUILDKITE_PLUGIN_ECR_LOGIN=1
5757
export BUILDKITE_PLUGIN_ECR_RETRIES=3
58+
export BUILDKITE_PLUGIN_ECR_CREDENTIAL_HELPER=true
5859

5960
# map AWS_ECR_LOGIN_REGISTRY_IDS into the plugin list format
6061
if [[ -n "${AWS_ECR_LOGIN_REGISTRY_IDS:-}" ]]; then

0 commit comments

Comments
 (0)