avm99963 | 88e622d | 2021-01-22 18:57:58 +0100 | [diff] [blame] | 1 | MUTABLE_VERSION ?= latest |
| 2 | VERSION ?= $(shell git rev-parse --short HEAD) |
| 3 | |
avm99963 | b4e79ca | 2021-01-22 19:45:11 +0100 | [diff] [blame] | 4 | IMAGE_PROD := avm99963/hichipbridge |
Adrià Vilanova Martínez | 7047cc3 | 2024-06-29 13:55:25 +0200 | [diff] [blame] | 5 | IMAGE_INTERNAL := docker-registry.corp.avm99963.com/hichipbridge |
avm99963 | 88e622d | 2021-01-22 18:57:58 +0100 | [diff] [blame] | 6 | |
| 7 | docker-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ínez | 7047cc3 | 2024-06-29 13:55:25 +0200 | [diff] [blame] | 10 | docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_INTERNAL):$(VERSION) |
| 11 | docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_INTERNAL):$(MUTABLE_VERSION) |
avm99963 | 88e622d | 2021-01-22 18:57:58 +0100 | [diff] [blame] | 12 | |
| 13 | push-prod: docker-prod |
| 14 | docker push $(IMAGE_PROD):$(VERSION) |
Adrià Vilanova Martínez | 7047cc3 | 2024-06-29 13:55:25 +0200 | [diff] [blame] | 15 | docker push $(IMAGE_PROD):$(MUTABLE_VERSION) |
| 16 | docker push $(IMAGE_INTERNAL):$(VERSION) |
| 17 | docker push $(IMAGE_INTERNAL):$(MUTABLE_VERSION) |