Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix: upgrade code build image for target env deploy project (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
maghirardelli authored Apr 5, 2023
1 parent 68abc3c commit d4120ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion main/cicd/cicd-pipeline/config/buildspec/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ phases:
install:
# See supported runtimes at https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
runtime-versions:
nodejs: 12
nodejs: 16
golang: 1.18

pre_build:
Expand Down
13 changes: 4 additions & 9 deletions main/cicd/cicd-pipeline/config/infra/cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ Conditions:
UseCodeCommit: !Not
- !Equals ['${self:custom.settings.sourceAccountId}', '']
CreateStagingEnv: !Equals ['${self:custom.settings.createStagingEnv}', true]
RunTestsAgainstTargetEnv:
!Equals ['${self:custom.settings.runTestsAgainstTargetEnv}', true]
RunTestsAgainstTargetEnv: !Equals ['${self:custom.settings.runTestsAgainstTargetEnv}', true]
DeleteTargetEnv: !Equals ['${self:custom.settings.deleteAfterInstall}', true]
PreventCollision: !Equals ['${self:custom.settings.preventCollision}', true]
AddManualApproval:
!Equals ['${self:custom.settings.requireManualApproval}', true]
AddManualApproval: !Equals ['${self:custom.settings.requireManualApproval}', true]
SubscribeNotificationEmail: !Not
- !Equals ['${self:custom.settings.emailForNotifications}', '']

Expand Down Expand Up @@ -844,7 +842,7 @@ Resources:
Environment:
ComputeType: BUILD_GENERAL1_LARGE
Type: LINUX_CONTAINER
Image: aws/codebuild/amazonlinux2-x86_64-standard:2.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
EnvironmentVariables:
- Name: DEPLOYMENT_BUCKET
Value: ${self:provider.deploymentBucket.name}
Expand Down Expand Up @@ -1047,8 +1045,5 @@ Outputs:
AppArtifactBucketArn: { Value: !GetAtt AppArtifactBucket.Arn }
ArtifactBucketKeyArn: { Value: !GetAtt ArtifactBucketKey.Arn }
AppPipelineName: { Value: !Ref AppPipeline }
AppPipelineArn:
{
Value: !Sub 'arn:${AWS::Partition}:codepipeline:${AWS::Region}:${AWS::AccountId}:${AppPipeline}',
}
AppPipelineArn: { Value: !Sub 'arn:${AWS::Partition}:codepipeline:${AWS::Region}:${AWS::AccountId}:${AppPipeline}' }
PipelineNotificationsTopic: { Value: !Ref PipelineNotificationsTopic }

0 comments on commit d4120ff

Please sign in to comment.