Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ phases:
- aws --version
#- $(aws ecr get-login --region ap-south-1 --no-include-email)
# update below
- aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin 975050323630.dkr.ecr.ap-south-1.amazonaws.com
- aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 626635433156.dkr.ecr.us-east-1.amazonaws.com
- # Replace with this to your repository URI
- REPOSITORY_URI=975050323630.dkr.ecr.ap-south-1.amazonaws.com/awsdevopsecr
- REPOSITORY_URI=626635433156.dkr.ecr.us-east-1.amazonaws.com/awsdevopspro
- IMAGE_TAG=build-$(echo $CODEBUILD_BUILD_ID | awk -F":" '{print $2}')
build:
commands:
Expand All @@ -27,7 +27,7 @@ phases:
- docker push $REPOSITORY_URI:$IMAGE_TAG
- echo Writing image definitions file...
# Give your container name
- DOCKER_CONTAINER_NAME=spring-demo-ecr
- DOCKER_CONTAINER_NAME=awsdevopspro
- printf '[{"name":"%s","imageUri":"%s"}]' $DOCKER_CONTAINER_NAME $REPOSITORY_URI:$IMAGE_TAG > imagedefinitions.json
- echo $DOCKER_CONTAINER_NAME
- echo printing imagedefinitions.json
Expand Down