Skip to content

Commit 1afb105

Browse files
committed
Merge branch 'main' into fix_osx_sed_in_makefile
2 parents 3a01992 + 33a8c74 commit 1afb105

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ if [[ "${BUILDKITE_ECR_POLICY:-}" != "none" && "${ECR_PLUGIN_ENABLED:-}" == "1"
115115
export BUILDKITE_PLUGIN_ECR_ACCOUNT_IDS_0="${AWS_ECR_LOGIN_REGISTRY_IDS}"
116116
fi
117117

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+
118123
# shellcheck source=/dev/null
119124
source /usr/local/buildkite-aws-stack/plugins/ecr/hooks/environment
120125
fi

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ if [[ "${BUILDKITE_ECR_POLICY:-}" != "none" && "${ECR_PLUGIN_ENABLED:-}" == "1"
6161
export BUILDKITE_PLUGIN_ECR_ACCOUNT_IDS_0="${AWS_ECR_LOGIN_REGISTRY_IDS}"
6262
fi
6363

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+
6469
# shellcheck source=/dev/null
6570
source /usr/local/buildkite-aws-stack/plugins/ecr/hooks/environment
6671
fi

templates/aws-stack.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,11 @@ Resources:
11501150
VpcResources: !If
11511151
- CreateVpcResources
11521152
- [ !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" ]
11541158

11551159
BuildkiteAgentTokenParameter:
11561160
Type: AWS::SSM::Parameter

0 commit comments

Comments
 (0)