blob: 7cc7c1b4092b8e417aa1b233353a71bc30ed627b [file] [log] [blame]
Adrià Vilanova Martíneza746d902023-08-26 18:40:54 +02001MUTABLE_VERSION ?= latest
2VERSION ?= $(shell git rev-parse --short HEAD)
3
4IMAGE_INTERNAL := docker-registry.corp.avm99963.com/twpt-server
5
6docker-internal: Dockerfile
7 docker build --force-rm -f Dockerfile --tag $(IMAGE_INTERNAL):$(VERSION) ../..
8 docker tag $(IMAGE_INTERNAL):$(VERSION) $(IMAGE_INTERNAL):$(MUTABLE_VERSION)
9
10push-internal: docker-internal
11 docker push $(IMAGE_INTERNAL):$(VERSION)
12 docker push $(IMAGE_INTERNAL):$(MUTABLE_VERSION)