Skip to content

Commit ec77a0a

Browse files
committed
buildspec.ymlの修正
1 parent f8d13dd commit ec77a0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

buildspec.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ phases:
55
commands:
66
- echo Logging in to Amazon ECR...
77
- aws --version
8+
- $(aws ecr get-login-password --region ${AWS_DEFAULT_REGION})
89
- REPOSITORY_URI=${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${IMAGE_NAME}
9-
- REGISTORY_URI=${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com
10-
- aws ecr get-login-password | docker login --username AWS --password-stdin $REGISTORY_URI
1110
- IMAGE_TAG=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
1211
build:
1312
commands:

0 commit comments

Comments
 (0)