23 lines
430 B
Makefile
23 lines
430 B
Makefile
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:v1.1.1
|
|
|
|
build: export CGO_ENABLED=0
|
|
build: export GOOS=linux
|
|
build: export GOARCH=amd64
|
|
build:
|
|
go build -o out/manager main.go
|
|
|
|
docker:
|
|
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
|
|
|
|
push: docker
|
|
docker push $(IMAGE_TAG)
|