Skip to content

Commit 3b879f4

Browse files
update merge_master.yaml (#93)
1 parent 73a6170 commit 3b879f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

buildspec/merge_master.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ phases:
33
pre_build:
44
commands:
55
- echo Logging in to Amazon ECR...
6-
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
6+
- aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${REPOSITORY_URI}
77
build:
88
commands:
99
- echo Building the Docker image...
1010
- docker build -t ${REPOSITORY_URI}:latest .
11-
- docker push ${REPOSITORY_URI}
11+
- docker image push --all-tags ${REPOSITORY_URI}
1212
post_build:
1313
commands:
1414
- echo Build completed!

0 commit comments

Comments
 (0)