blob: 9941568392d4568044fd975af20aedbe73fe7772 [file] [log] [blame]
avm9996388e622d2021-01-22 18:57:58 +01001MUTABLE_VERSION ?= latest
2VERSION ?= $(shell git rev-parse --short HEAD)
3
avm99963b4e79ca2021-01-22 19:45:11 +01004IMAGE_PROD := avm99963/hichipbridge
avm9996388e622d2021-01-22 18:57:58 +01005
6docker-prod: Dockerfile
7 docker build --force-rm -f Dockerfile --tag=$(IMAGE_PROD):$(VERSION) ../../
8 docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_PROD):$(MUTABLE_VERSION)
9
10push-prod: docker-prod
11 docker push $(IMAGE_PROD):$(VERSION)