Skip to content

Commit a6cb52b

Browse files
authored
Merge pull request #6 from trenton/master
Login to all registries with DL containers
2 parents fb616c0 + a93989d commit a6cb52b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sagemaker_studio_image_build/data/buildspec.template.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ phases:
55
commands:
66
- echo Logging in to Amazon ECR...
77
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
8+
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION --registry-ids 763104351884)
9+
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION --registry-ids 217643126080)
10+
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION --registry-ids 727897471807)
811
build:
912
commands:
1013
- echo Build started on `date`
@@ -15,4 +18,4 @@ phases:
1518
commands:
1619
- echo Build completed on `date`
1720
- echo Pushing the Docker image...
18-
- docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG
21+
- docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG

0 commit comments

Comments
 (0)