blob: d35d8a132bc80a9d52b27ed04a0fca13c5bd3e4c [file] [log] [blame]
Adrià Vilanova Martínez2d0ec8d2022-01-20 18:45:52 +01001MUTABLE_VERSION ?= latest
2VERSION ?= $(shell git rev-parse --short HEAD)
Adrià Vilanova Martínez1cd22532024-01-02 00:52:24 +01003
Adrià Vilanova Martínez2d0ec8d2022-01-20 18:45:52 +01004IMAGE_PROD := avm99963/hgu-sipsettings-reverter
Adrià Vilanova Martínez1cd22532024-01-02 00:52:24 +01005IMAGE_INTERNAL := docker-registry.corp.avm99963.com/hgu-sipsettings-reverter
6
Adrià Vilanova Martínez2d0ec8d2022-01-20 18:45:52 +01007docker-prod: Dockerfile
8 docker build --force-rm -f Dockerfile --tag=$(IMAGE_PROD):$(VERSION) .
9 docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_PROD):$(MUTABLE_VERSION)
Adrià Vilanova Martínez1cd22532024-01-02 00:52:24 +010010 docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_INTERNAL):$(VERSION)
11 docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_INTERNAL):$(MUTABLE_VERSION)
12
Adrià Vilanova Martínez2d0ec8d2022-01-20 18:45:52 +010013push-prod: docker-prod
14 docker push $(IMAGE_PROD):$(VERSION)
Adrià Vilanova Martínez1cd22532024-01-02 00:52:24 +010015 docker push $(IMAGE_PROD):$(MUTABLE_VERSION)
16 docker push $(IMAGE_INTERNAL):$(VERSION)
17 docker push $(IMAGE_INTERNAL):$(MUTABLE_VERSION)