blob: a9fcb2f1af3964b2b5dcc59e502de457a5f18183 [file] [log] [blame]
MUTABLE_VERSION ?= latest
VERSION ?= $(shell git rev-parse --short HEAD)
IMAGE_PROD := avm99963/hichipbridge
IMAGE_INTERNAL := docker-registry.corp.avm99963.com/hichipbridge
docker-prod: Dockerfile
docker build --force-rm -f Dockerfile --tag=$(IMAGE_PROD):$(VERSION) ../../
docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_PROD):$(MUTABLE_VERSION)
docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_INTERNAL):$(VERSION)
docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_INTERNAL):$(MUTABLE_VERSION)
push-prod: docker-prod
docker push $(IMAGE_PROD):$(VERSION)
docker push $(IMAGE_PROD):$(MUTABLE_VERSION)
docker push $(IMAGE_INTERNAL):$(VERSION)
docker push $(IMAGE_INTERNAL):$(MUTABLE_VERSION)