diff --git a/buildspec/merge_master.yaml b/buildspec/merge_master.yaml index 71c9e38..7cfb899 100644 --- a/buildspec/merge_master.yaml +++ b/buildspec/merge_master.yaml @@ -3,12 +3,12 @@ phases: pre_build: commands: - echo Logging in to Amazon ECR... - - $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION) + - aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${REPOSITORY_URI} build: commands: - echo Building the Docker image... - docker build -t ${REPOSITORY_URI}:latest . - - docker push ${REPOSITORY_URI} + - docker image push --all-tags ${REPOSITORY_URI} post_build: commands: - echo Build completed!