Skip to content

Commit

Permalink
put ECR as a parameter in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
valenad1 committed Nov 15, 2024
1 parent cd37524 commit 14021df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions h2o-sagemaker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ build-local-image:
rm -rf ../build/dist

build-official-sagemaker-from-local: build-local-image
docker tag h2o-gbm-local:latest $(ACCOUNTID).dkr.ecr.$(REGION).amazonaws.com/adam-test:$(VERSION)
docker tag h2o-gbm-local:latest $(ACCOUNTID).dkr.ecr.$(REGION).amazonaws.com/$(ECR):$(VERSION)
aws ecr get-login-password --region $(REGION) | docker login --username AWS --password-stdin $(ACCOUNTID).dkr.ecr.$(REGION).amazonaws.com
docker push $(ACCOUNTID).dkr.ecr.us-east-1.amazonaws.com/adam-test:$(VERSION)
docker push $(ACCOUNTID).dkr.ecr.us-east-1.amazonaws.com/$(ECR):$(VERSION)

build-official-sagemaker-from-latest: build-sagemaker-image
docker tag h2o-gbm-local:latest $(ACCOUNTID).dkr.ecr.$(REGION).amazonaws.com/adam-test:$(VERSION)
docker tag h2o-gbm-local:latest $(ACCOUNTID).dkr.ecr.$(REGION).amazonaws.com/$(ECR):$(VERSION)
aws ecr get-login-password --region $(REGION) | docker login --username AWS --password-stdin $(ACCOUNTID).dkr.ecr.$(REGION).amazonaws.com
docker push $(ACCOUNTID).dkr.ecr.us-east-1.amazonaws.com/adam-test:$(VERSION)
docker push $(ACCOUNTID).dkr.ecr.us-east-1.amazonaws.com/$(ECR):$(VERSION)

0 comments on commit 14021df

Please sign in to comment.