21 lines
391 B
Makefile
21 lines
391 B
Makefile
IMAGE_TAG ?= docker.educg.net/k8s/manager:dev
|
|
|
|
build: export CGO_ENABLED=0
|
|
build: export GOOS=linux
|
|
build: export GOARCH=amd64
|
|
build:
|
|
go build -o out/manager main.go
|
|
|
|
docker: build
|
|
docker build --rm -t $(IMAGE_TAG) .
|
|
|
|
install: docker
|
|
kubectl apply -f install.yaml
|
|
|
|
uninstall:
|
|
kubectl delete -f install.yaml
|
|
|
|
restart: docker
|
|
kubectl delete -f install.yaml
|
|
kubectl apply -f install.yaml
|