blob: b0667085e612792f292d49f5782ea45132216c99 [file] [log] [blame]
Adrià Vilanova Martínez60524332022-11-20 02:33:56 +01001MUTABLE_VERSION ?= latest
2VERSION ?= $(shell git rev-parse --short HEAD)
3
4IMAGE_PROD := avm99963/fisipastanagapp
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)