Skip to content

Commit 548abfe

Browse files
committed
Reverted 'docker login' command
1 parent d6b7ee3 commit 548abfe

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

buildspec.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
version: 0.2
2-
env:
3-
parameter-store:
4-
DOCKER_USERNAME: DOCKER_USERNAME
5-
DOCKER_PASS: DOCKER_PASS
2+
63
phases:
74
pre_build:
85
commands:
96
- echo Logging in to Amazon ECR...
107
- aws --version
118
- REPOSITORY_URI=238241637211.dkr.ecr.us-west-2.amazonaws.com/speedupamerica-migrator
12-
- docker login --username $DOCKER_USERNAME -p $DOCKER_PASS $REPOSITORY_URI
9+
- aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin $REPOSITORY_URI
1310
- COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
1411
- IMAGE_TAG=${COMMIT_HASH:=latest}
1512
build:

0 commit comments

Comments
 (0)