Adrià Vilanova MartÃnez | e73997b | 2022-07-19 18:58:55 +0200 | [diff] [blame] | 1 | MUTABLE_VERSION ?= latest |
2 | VERSION ?= $(shell git rev-parse --short HEAD) | ||||
3 | |||||
4 | IMAGE_PROD := avm99963/vulnzybot | ||||
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) |