Skip to content
Snippets Groups Projects
Commit 2a9547ee authored by Yunhua Koglin's avatar Yunhua Koglin
Browse files

update ecr command

parent 837caa00
No related branches found
No related tags found
1 merge request!437merge code to gitlab
...@@ -54,7 +54,7 @@ phases: ...@@ -54,7 +54,7 @@ phases:
pre_build: pre_build:
commands: commands:
- echo "Logging in to Amazon ECR..." - echo "Logging in to Amazon ECR..."
- $(aws ecr get-login --no-include-email --region $AWS_REGION) # authenticate with ECR via the AWS CLI - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${ECR_REGISTRY} # authenticate with ECR via the AWS CLI
build: build:
commands: commands:
- export REPO_NAME=${PWD##*/} - export REPO_NAME=${PWD##*/}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment