Adrià Vilanova MartÃnez | a746d90 | 2023-08-26 18:40:54 +0200 | [diff] [blame] | 1 | MUTABLE_VERSION ?= latest |
| 2 | VERSION ?= $(shell git rev-parse --short HEAD) |
| 3 | |
| 4 | IMAGE_INTERNAL := docker-registry.corp.avm99963.com/twpt-server |
| 5 | |
| 6 | docker-internal: Dockerfile |
| 7 | docker build --force-rm -f Dockerfile --tag $(IMAGE_INTERNAL):$(VERSION) ../.. |
| 8 | docker tag $(IMAGE_INTERNAL):$(VERSION) $(IMAGE_INTERNAL):$(MUTABLE_VERSION) |
| 9 | |
| 10 | push-internal: docker-internal |
| 11 | docker push $(IMAGE_INTERNAL):$(VERSION) |
| 12 | docker push $(IMAGE_INTERNAL):$(MUTABLE_VERSION) |