mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-25 02:08:44 +08:00
14 lines
337 B
Makefile
14 lines
337 B
Makefile
version := v1
|
|
|
|
build:
|
|
cd $(GOPATH)/src/zero && docker build -t registry.cn-hangzhou.aliyuncs.com/xapp/shedding:$(version) . -f example/load/simulate/cpu/Dockerfile
|
|
|
|
push: build
|
|
docker push registry.cn-hangzhou.aliyuncs.com/xapp/shedding:$(version)
|
|
|
|
deploy: push
|
|
kubectl apply -f shedding.yaml
|
|
|
|
clean:
|
|
kubectl delete -f shedding.yaml
|