-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (23 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DOCKER_USERNAME ?= k8s-volume-copy
LATEST_TAG ?= ci
IMAGE_TAG ?= $(shell git rev-parse --short HEAD)
.PHONY: client-image
client-image:
docker build -t ghcr.io/$(DOCKER_USERNAME)/rsync-client:$(LATEST_TAG) -f client/Dockerfile .
docker build -t ghcr.io/$(DOCKER_USERNAME)/rsync-client:$(IMAGE_TAG) -f client/Dockerfile .
.PHONY: push-client-image
push-client-image: client-image
docker push ghcr.io/$(DOCKER_USERNAME)/rsync-client:$(LATEST_TAG)
docker push ghcr.io/$(DOCKER_USERNAME)/rsync-client:$(IMAGE_TAG)
.PHONY: daemon-image
daemon-image:
docker build -t ghcr.io/$(DOCKER_USERNAME)/rsync-daemon:$(LATEST_TAG) -f daemon/Dockerfile .
docker build -t ghcr.io/$(DOCKER_USERNAME)/rsync-daemon:$(IMAGE_TAG) -f daemon/Dockerfile .
.PHONY: push-daemon-image
push-daemon-image: daemon-image
docker push ghcr.io/$(DOCKER_USERNAME)/rsync-daemon:$(LATEST_TAG)
docker push ghcr.io/$(DOCKER_USERNAME)/rsync-daemon:$(IMAGE_TAG)
.PHONY: images
images: client-image daemon-image
.PHONY: push-images
push-images: push-client-image push-daemon-image