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