blob: 1b05de0d36f45d82bf632a78421e31f102fda36d [file] [log] [blame]
include ../../Makefile.common
include ../setup.env
IMAGE_NAME:=git-ssh
docker-registry-login:
aws ecr get-login-password --region $(AWS_REGION) \
| docker login --username AWS --password-stdin $(DOCKER_REGISTRY_URI)/aws-gerrit/$(IMAGE_NAME)
git-ssh-build:
docker build -t aws-gerrit/$(IMAGE_NAME) .
docker tag aws-gerrit/$(IMAGE_NAME):latest $(DOCKER_REGISTRY_URI)/aws-gerrit/$(IMAGE_NAME):latest
git-ssh-publish: docker-registry-login git-ssh-build
docker push $(DOCKER_REGISTRY_URI)/aws-gerrit/$(IMAGE_NAME):latest