Adrià Vilanova MartÃnez | 250457f | 2021-08-08 01:23:14 +0200 | [diff] [blame^] | 1 | MUTABLE_VERSION ?= latest |
2 | VERSION ?= $(shell git rev-parse --short HEAD) | ||||
3 | |||||
4 | IMAGE_PROD := avm99963/gitwatcher | ||||
5 | |||||
6 | docker-prod: Dockerfile | ||||
7 | docker build --force-rm -f Dockerfile --tag=$(IMAGE_PROD):$(VERSION) . | ||||
8 | docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_PROD):$(MUTABLE_VERSION) | ||||
9 | |||||
10 | push-prod: docker-prod | ||||
11 | docker push $(IMAGE_PROD):$(VERSION) |