avm99963 | 88e622d | 2021-01-22 18:57:58 +0100 | [diff] [blame] | 1 | MUTABLE_VERSION ?= latest |
| 2 | VERSION ?= $(shell git rev-parse --short HEAD) |
| 3 | |
avm99963 | b4e79ca | 2021-01-22 19:45:11 +0100 | [diff] [blame] | 4 | IMAGE_PROD := avm99963/hichipbridge |
avm99963 | 88e622d | 2021-01-22 18:57:58 +0100 | [diff] [blame] | 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) |