-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
28 lines (25 loc) · 870 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
build-local:
go build -o bin/kuilei github.com/airconduct/kuilei/cmd/kuilei
.PHONY: test
test:
go test -v --race ./...
VERSION ?= $(shell git describe --always)
IMAGE_REGISTRY ?= airconduct/kuilei
GOPROXY ?= https://proxy.golang.org,direct
release:
docker buildx build --platform=linux/amd64,linux/arm64 \
--label=${VERSION} \
--build-arg GOPROXY=${GOPROXY} \
-t ${IMAGE_REGISTRY}:${VERSION} \
-t ${IMAGE_REGISTRY}:latest --push .
# kind-setup:
# kind create cluster --config hack/kind.yaml
# kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
# helm repo add jetstack https://charts.jetstack.io
# helm repo update
# helm install \
# cert-manager jetstack/cert-manager \
# --namespace cert-manager \
# --create-namespace \
# --version v1.10.1 \
# --set installCRDs=true