-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
29 lines (24 loc) · 1.01 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
CURRENT_DIR=$(shell pwd)
DIST_DIR=${CURRENT_DIR}/dist
.PHONY: release
release:
make BIN_NAME=glooplatform-api-plugin-darwin-amd64 GOOS=darwin glooplatform-api-plugin-build
make BIN_NAME=glooplatform-api-plugin-darwin-arm64 GOOS=darwin GOARCH=arm64 glooplatform-api-plugin-build
make BIN_NAME=glooplatform-api-plugin-linux-amd64 GOOS=linux glooplatform-api-plugin-build
make BIN_NAME=glooplatform-api-plugin-linux-arm64 GOOS=linux GOARCH=arm64 glooplatform-api-plugin-build
make BIN_NAME=glooplatform-api-plugin-windows-amd64.exe GOOS=windows glooplatform-api-plugin-build
.PHONY: glooplatform-api-plugin-build
glooplatform-api-plugin-build:
CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build -v -o ${DIST_DIR}/${BIN_NAME} .
.PHONY: dev
dev:
kubectl create ns argo-rollouts || true
skaffold dev -n argo-rollouts
.PHONY: install-rollouts
install-rollouts:
kubectl create ns argo-rollouts || true
kubectl apply -k ./deploy
.PHONY: demo
demo:
make install-rollouts
kubectl apply -f ./examples/0-rollout-initial-state-green