-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (32 loc) · 2.61 KB
/
Makefile
File metadata and controls
46 lines (32 loc) · 2.61 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
VERSION ?= 0.1.17
DOCKERHUB_USER ?= plan9better
LOCAL_REGISTRY ?= 192.168.10.201:5000
.PHONY: publish test all vxlandlord xfrminion restctl charon operator
publish:
docker build -t $(DOCKERHUB_USER)/vxlandlord:$(VERSION) --platform linux/amd64 --file ./vxlandlord.Dockerfile --build-arg PLATFORM=amd64 .
docker push $(DOCKERHUB_USER)/vxlandlord:$(VERSION)
docker build -t $(DOCKERHUB_USER)/xfrminion:$(VERSION) --platform linux/amd64 --file ./xfrminion.Dockerfile --build-arg PLATFORM=amd64 .
docker push $(DOCKERHUB_USER)/xfrminion:$(VERSION)
docker build -t $(DOCKERHUB_USER)/restctl:$(VERSION) --platform linux/amd64 --file ./restctl.Dockerfile --build-arg PLATFORM=amd64 .
docker push $(DOCKERHUB_USER)/restctl:$(VERSION)
docker build -t $(DOCKERHUB_USER)/operator:$(VERSION) --platform linux/amd64 --file ./operator.Dockerfile --build-arg PLATFORM=amd64 .
docker push $(DOCKERHUB_USER)/operator:$(VERSION)
docker build -t $(DOCKERHUB_USER)/charon:$(VERSION) --platform linux/amd64 --file ./charon.Dockerfile --build-arg PLATFORM=amd64 .
docker push $(DOCKERHUB_USER)/charon:$(VERSION)
docker build -t $(DOCKERHUB_USER)/xfrminjector:$(VERSION) --platform linux/amd64 --file ./xfrminjector.Dockerfile --build-arg PLATFORM=amd64 .
docker push $(DOCKERHUB_USER)/xfrminjector:$(VERSION)
test:
docker build -t $(DOCKERHUB_USER)/vxlandlord:latest-dev-test --platform linux/arm64 --file ./vxlandlord.Dockerfile --build-arg PLATFORM=arm64 .
docker push $(DOCKERHUB_USER)/vxlandlord:latest-dev-test
docker build -t $(DOCKERHUB_USER)/xfrminion:latest-dev-test --platform linux/arm64 --file ./xfrminion.Dockerfile --build-arg PLATFORM=arm64 .
docker push $(DOCKERHUB_USER)/xfrminion:latest-dev-test
docker build -t $(DOCKERHUB_USER)/restctl:latest-dev-test --platform linux/arm64 --file ./restctl.Dockerfile --build-arg PLATFORM=arm64 .
docker push $(DOCKERHUB_USER)/restctl:latest-dev-test
docker build -t $(DOCKERHUB_USER)/operator:latest-dev-test --platform linux/arm64 --file ./operator.Dockerfile --build-arg PLATFORM=arm64 .
docker push $(DOCKERHUB_USER)/operator:latest-dev-test
docker build -t $(DOCKERHUB_USER)/charon:latest-dev-test --platform linux/arm64 --file ./charon.Dockerfile --build-arg PLATFORM=arm64 .
docker push $(DOCKERHUB_USER)/charon:latest-dev-test
docker build -t $(DOCKERHUB_USER)/xfrminjector:latest-dev-test --platform linux/arm64 --file ./xfrminjector.Dockerfile --build-arg PLATFORM=arm64 .
docker push $(DOCKERHUB_USER)/xfrminjector:latest-dev-test
all:
GOFLAGS="-trimpath -buildvcs=false" KO_DOCKER_REPO="192.168.10.201:5000" ko resolve --push=true -B -f helm-values-template.yaml > helm/values.yaml