File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
linux/conf/buildkite-agent/hooks
windows/conf/buildkite-agent/hooks Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ if [[ "${BUILDKITE_ECR_POLICY:-}" != "none" && "${ECR_PLUGIN_ENABLED:-}" == "1"
115
115
export BUILDKITE_PLUGIN_ECR_ACCOUNT_IDS_0=" ${AWS_ECR_LOGIN_REGISTRY_IDS} "
116
116
fi
117
117
118
+ # map AWS_ECR_LOGIN into the plugin format
119
+ if [[ -n " ${AWS_ECR_LOGIN:- } " ]]; then
120
+ export BUILDKITE_PLUGIN_ECR_LOGIN=" ${AWS_ECR_LOGIN} "
121
+ fi
122
+
118
123
# shellcheck source=/dev/null
119
124
source /usr/local/buildkite-aws-stack/plugins/ecr/hooks/environment
120
125
fi
Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ if [[ "${BUILDKITE_ECR_POLICY:-}" != "none" && "${ECR_PLUGIN_ENABLED:-}" == "1"
61
61
export BUILDKITE_PLUGIN_ECR_ACCOUNT_IDS_0=" ${AWS_ECR_LOGIN_REGISTRY_IDS} "
62
62
fi
63
63
64
+ # map AWS_ECR_LOGIN into the plugin format
65
+ if [[ -n " ${AWS_ECR_LOGIN:- } " ]]; then
66
+ export BUILDKITE_PLUGIN_ECR_LOGIN=" ${AWS_ECR_LOGIN} "
67
+ fi
68
+
64
69
# shellcheck source=/dev/null
65
70
source /usr/local/buildkite-aws-stack/plugins/ecr/hooks/environment
66
71
fi
You can’t perform that action at this time.
0 commit comments