We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6b7ee3 commit 548abfeCopy full SHA for 548abfe
buildspec.yml
@@ -1,15 +1,12 @@
1
version: 0.2
2
-env:
3
- parameter-store:
4
- DOCKER_USERNAME: DOCKER_USERNAME
5
- DOCKER_PASS: DOCKER_PASS
+
6
phases:
7
pre_build:
8
commands:
9
- echo Logging in to Amazon ECR...
10
- aws --version
11
- REPOSITORY_URI=238241637211.dkr.ecr.us-west-2.amazonaws.com/speedupamerica-migrator
12
- - docker login --username $DOCKER_USERNAME -p $DOCKER_PASS $REPOSITORY_URI
+ - aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin $REPOSITORY_URI
13
- COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
14
- IMAGE_TAG=${COMMIT_HASH:=latest}
15
build:
0 commit comments