Merge pull request #45 from refayathaque/patch-1

Update buildspec.yml for new AWS CLI ECR login
This commit is contained in:
Edward Viaene
2021-01-26 19:54:02 +01:00
committed by GitHub
+1 -1
View File
@@ -3,7 +3,7 @@ version: 0.2
phases: phases:
pre_build: pre_build:
commands: commands:
- $(aws ecr get-login --no-include-email) - $(aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com)
build: build:
commands: commands:
- docker build -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$CODEBUILD_RESOLVED_SOURCE_VERSION . - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$CODEBUILD_RESOLVED_SOURCE_VERSION .