File tree Expand file tree Collapse file tree 6 files changed +21
-6
lines changed
internal/pkg/deploy/cloudformation/stack/testdata/pipeline Expand file tree Collapse file tree 6 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,10 @@ Resources:
111
111
Type : LINUX_CONTAINER
112
112
ComputeType : BUILD_GENERAL1_SMALL
113
113
PrivilegedMode : true
114
- Image : aws/codebuild/amazonlinux2-x86_64-standard:1.0
114
+ Image : aws/codebuild/amazonlinux2-x86_64-standard:3.0
115
+ EnvironmentVariables :
116
+ - Name : AWS_ACCOUNT_ID
117
+ Value : !Sub '${AWS::AccountId}'
115
118
Source :
116
119
Type : CODEPIPELINE
117
120
BuildSpec : copilot/buildspec.yml
Original file line number Diff line number Diff line change @@ -106,7 +106,10 @@ Resources:
106
106
Type : LINUX_CONTAINER
107
107
ComputeType : BUILD_GENERAL1_SMALL
108
108
PrivilegedMode : true
109
- Image : aws/codebuild/amazonlinux2-x86_64-standard:1.0
109
+ Image : aws/codebuild/amazonlinux2-x86_64-standard:3.0
110
+ EnvironmentVariables :
111
+ - Name : AWS_ACCOUNT_ID
112
+ Value : !Sub '${AWS::AccountId}'
110
113
Source :
111
114
Type : CODEPIPELINE
112
115
BuildSpec : copilot/buildspec.yml
Original file line number Diff line number Diff line change @@ -111,7 +111,10 @@ Resources:
111
111
Type : LINUX_CONTAINER
112
112
ComputeType : BUILD_GENERAL1_SMALL
113
113
PrivilegedMode : true
114
- Image : aws/codebuild/amazonlinux2-x86_64-standard:1.0
114
+ Image : aws/codebuild/amazonlinux2-x86_64-standard:3.0
115
+ EnvironmentVariables :
116
+ - Name : AWS_ACCOUNT_ID
117
+ Value : !Sub '${AWS::AccountId}'
115
118
Source :
116
119
Type : CODEPIPELINE
117
120
BuildSpec : copilot/buildspec.yml
Original file line number Diff line number Diff line change @@ -106,7 +106,10 @@ Resources:
106
106
Type : LINUX_CONTAINER
107
107
ComputeType : BUILD_GENERAL1_SMALL
108
108
PrivilegedMode : true
109
- Image : aws/codebuild/amazonlinux2-x86_64-standard:1.0
109
+ Image : aws/codebuild/amazonlinux2-x86_64-standard:3.0
110
+ EnvironmentVariables :
111
+ - Name : AWS_ACCOUNT_ID
112
+ Value : !Sub '${AWS::AccountId}'
110
113
Source :
111
114
Type : CODEPIPELINE
112
115
BuildSpec : copilot/buildspec.yml
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ phases:
115
115
for env in $envs; do
116
116
repo=$(cat $CODEBUILD_SRC_DIR/infrastructure/$workload-$env.params.json | jq '.Parameters.ContainerImage' | sed 's/"//g');
117
117
region=$(echo $repo | cut -d'.' -f4);
118
- $(aws ecr get-login --no-include-email --region $ region);
118
+ $(aws ecr get-login-password --region $region | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$ region.amazonaws.com );
119
119
docker tag $image_id $repo;
120
120
docker push $repo;
121
121
done;
Original file line number Diff line number Diff line change @@ -115,7 +115,10 @@ Resources:
115
115
Type : LINUX_CONTAINER
116
116
ComputeType : BUILD_GENERAL1_SMALL
117
117
PrivilegedMode : true
118
- Image : aws/codebuild/amazonlinux2-x86_64-standard:1.0
118
+ Image : aws/codebuild/amazonlinux2-x86_64-standard:3.0
119
+ EnvironmentVariables :
120
+ - Name : AWS_ACCOUNT_ID
121
+ Value : !Sub '${AWS::AccountId}'
119
122
Source :
120
123
Type : CODEPIPELINE
121
124
BuildSpec : copilot/buildspec.yml
You can’t perform that action at this time.
0 commit comments