mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-27 20:38:41 +08:00
14 lines
544 B
Makefile
14 lines
544 B
Makefile
|
version := v$(shell /bin/date "+%y%m%d%H%M%S")
|
||
|
|
||
|
build:
|
||
|
docker pull alpine
|
||
|
docker pull golang:alpine
|
||
|
cd $(GOPATH)/src/zero && docker build -t registry.cn-hangzhou.aliyuncs.com/xapp/gracefulrpc:$(version) . -f example/graceful/etcd/rpc/Dockerfile
|
||
|
docker image prune --filter label=stage=gobuilder -f
|
||
|
|
||
|
push: build
|
||
|
docker push registry.cn-hangzhou.aliyuncs.com/xapp/gracefulrpc:$(version)
|
||
|
|
||
|
deploy: push
|
||
|
kubectl -n kevin set image deployment/gracefulrpc-deployment gracefulrpc=registry-vpc.cn-hangzhou.aliyuncs.com/xapp/gracefulrpc:$(version)
|