From b86d71585463f1b8cbc8a3e8404a56791a56079c Mon Sep 17 00:00:00 2001 From: hjo-ilmn Date: Mon, 23 Sep 2024 23:35:23 -0700 Subject: [PATCH] update codebuild for generating docker container --- templates/container-build.template.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/container-build.template.yaml b/templates/container-build.template.yaml index 7a9addc..fe2f85f 100644 --- a/templates/container-build.template.yaml +++ b/templates/container-build.template.yaml @@ -228,11 +228,11 @@ Resources: phases: pre_build: commands: - - sudo apt-get update && sudo apt-get install -y curl + - apt-get update && sudo apt-get install -y curl - ls -al - cd ${SERVICE_NAME} - ls -al - - $(aws ecr get-login) + - aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${REPOSITORY_URI} - TAG=${SERVICE_NAME} build: commands: @@ -246,7 +246,7 @@ Resources: files: build.json Environment: ComputeType: BUILD_GENERAL1_SMALL - Image: aws/codebuild/docker:1.12.1 + Image: aws/codebuild/standard:7.0-24.08.23 Type: LINUX_CONTAINER EnvironmentVariables: - Name: AWS_DEFAULT_REGION