1234567891011121314151617181920212223242526272829303132333435 |
- .PHONY: version
- version?=1.0.0
- tag=reg.cestong.com.cn/cecf/ob-agent-stream:${version}
- jar:
- mvn package
- docker-build: jar
- docker build . -t ${tag}
- docker-push: docker-build
- docker push ${tag}
- echo ${version} > ./version
- # test
- js_test_tag=hub.js.sgcc.com.cn/observe/ob-agent-stream:${version}
- js_test_save_path=~/tmp/oas-js-test-${version}.tar
- js-test-docker-build: jar
- docker build . -t ${js_test_tag}
- docker save ${js_test_tag} -o ${js_test_save_path}
- js-test-docker-push: js-test-docker-build
- docker push ${js_test_tag}
- echo ${version} > ./version
- # js prod
- js_prod_tag=hub.js.sgcc.com.cn/observe/ob-agent-stream:${version}
- js_test_save_path=~/tmp/oas-js-prod-${version}.tar
- js-prod-docker-build: jar
- docker build . -t ${js_prod_tag}
- docker save ${js_prod_tag} -o ${js_test_save_path}
|