blob: fcfd9f0a67a897d54240bce69e6854d07f6e5660 [file] [log] [blame]
Adrià Vilanova Martíneze73997b2022-07-19 18:58:55 +02001MUTABLE_VERSION ?= latest
2VERSION ?= $(shell git rev-parse --short HEAD)
3
4IMAGE_PROD := avm99963/vulnzybot
5
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)