File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
linux/conf/buildkite-agent/hooks
windows/conf/buildkite-agent/hooks Expand file tree Collapse file tree 3 files changed +15
-1
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
Original file line number Diff line number Diff line change @@ -1150,7 +1150,11 @@ Resources:
1150
1150
VpcResources : !If
1151
1151
- CreateVpcResources
1152
1152
- [ !Ref RouteDefault, !Ref Subnet0Routes, !Ref Subnet1Routes ]
1153
- - !Ref " AWS::NoValue"
1153
+ - []
1154
+ # By referencing these resources, CloudFormation creates implicit dependencies
1155
+ Subnet0RouteCheck : !If [ CreateVpcResources, !Ref Subnet0Routes, !Ref "AWS::NoValue" ]
1156
+ Subnet1RouteCheck : !If [ CreateVpcResources, !Ref Subnet1Routes, !Ref "AWS::NoValue" ]
1157
+ RouteDefaultCheck : !If [ CreateVpcResources, !Ref RouteDefault, !Ref "AWS::NoValue" ]
1154
1158
1155
1159
BuildkiteAgentTokenParameter :
1156
1160
Type : AWS::SSM::Parameter
You can’t perform that action at this time.
0 commit comments