blob: a9fcb2f1af3964b2b5dcc59e502de457a5f18183 [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
Adrià Vilanova Martínez7047cc32024-06-29 13:55:25 +02005IMAGE_INTERNAL := docker-registry.corp.avm99963.com/hichipbridge
avm9996388e622d2021-01-22 18:57:58 +01006
7docker-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ínez7047cc32024-06-29 13:55:25 +020010 docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_INTERNAL):$(VERSION)
11 docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_INTERNAL):$(MUTABLE_VERSION)
avm9996388e622d2021-01-22 18:57:58 +010012
13push-prod: docker-prod
14 docker push $(IMAGE_PROD):$(VERSION)
Adrià Vilanova Martínez7047cc32024-06-29 13:55:25 +020015 docker push $(IMAGE_PROD):$(MUTABLE_VERSION)
16 docker push $(IMAGE_INTERNAL):$(VERSION)
17 docker push $(IMAGE_INTERNAL):$(MUTABLE_VERSION)