123456789101112131415161718192021222324252627 |
- .PHONY: version
- save_dir=~/tmp
- version?=latest
- tag=reg.cestong.com.cn/cecf/i6000pusher:${version}
- release_tag=hub.js.sgcc.com.cn/observe/i6000pusher:${version}
- build:
- go build -o ./bin/i6000pusher git.cestong.com.cn/cecf/i6000pusher/cmd/i6000pusher
- run: build
- ./bin/i6000pusher
- gen-pb:
- protoc -I ./opentelemetry-proto -I ./pb --go_out=pkg/pb ./pb/flatspan.proto
- docker-build: build
- docker build . -t ${tag}
- docker-push: docker-build
- docker push ${tag}
- echo ${version} > ./version
- release:
- docker tag ${tag} ${release_tag}
- docker save ${release_tag} -o ${save_dir}/i6000pusher_${version}.tar
|