forked from zakkg3/ClusterSecret
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 843 Bytes
/
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
30
31
32
33
IMG_NAMESPACE = flag5
IMG_NAME = clustersecret
IMG_FQNAME = $(IMG_NAMESPACE)/$(IMG_NAME)
IMG_VERSION = 0.0.8
.PHONY: container push clean arm-container arm-push arm-clean
all: container push
arm: arm-container arm-push
clean: clean arm-clean
container:
sudo docker build -t $(IMG_FQNAME):$(IMG_VERSION) -t $(IMG_FQNAME):latest .
push: container
sudo docker push $(IMG_FQNAME):$(IMG_VERSION)
sudo docker push $(IMG_FQNAME):latest
clean:
sudo docker rmi $(IMG_FQNAME):$(IMG_VERSION)
arm-container:
sudo docker build -t $(IMG_FQNAME):$(IMG_VERSION)_arm32 -f Dockerfile.arm .
arm-push: arm-container
sudo docker push $(IMG_FQNAME):$(IMG_VERSION)_arm32
arm-clean:
sudo docker rmi $(IMG_FQNAME):$(IMG_VERSION)_arm32
beta:
sudo docker build -t $(IMG_FQNAME):$(IMG_VERSION)-beta .
sudo docker push $(IMG_FQNAME):$(IMG_VERSION)-beta