Skip to content

Commit

Permalink
Makefile: update
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed May 15, 2020
1 parent 7e6f29b commit a75e4d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ docker: clean
docker tag $(IMG_NAME):$(TAG) $(ACCOUNT_ID).dkr.ecr.$(REGION).amazonaws.com/$(IMG_NAME):$(TAG)
docker run --rm -it $(IMG_NAME):$(TAG) aws --version

# e.g.
# make docker-push ACCOUNT_ID=${YOUR_ACCOUNT_ID} TAG=latest
docker-push: docker
eval $$(aws ecr get-login --registry-ids $(ACCOUNT_ID) --no-include-email --region $(REGION))
docker push $(ACCOUNT_ID).dkr.ecr.$(REGION).amazonaws.com/$(IMG_NAME):$(TAG);
Expand Down

0 comments on commit a75e4d4

Please sign in to comment.