We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73a6170 commit 3b879f4Copy full SHA for 3b879f4
1 file changed
buildspec/merge_master.yaml
@@ -3,12 +3,12 @@ phases:
3
pre_build:
4
commands:
5
- echo Logging in to Amazon ECR...
6
- - $(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}
7
build:
8
9
- echo Building the Docker image...
10
- docker build -t ${REPOSITORY_URI}:latest .
11
- - docker push ${REPOSITORY_URI}
+ - docker image push --all-tags ${REPOSITORY_URI}
12
post_build:
13
14
- echo Build completed!
0 commit comments