12345678910111213141516171819202122232425262728293031323334353637 |
- .PHONY: version
- version?=1.0.0
- tag=reg.cestong.com.cn/cecf/ob-platform-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-js-test:${version}
- js_test_save_path=~/tmp/oas-js-test-${version}.tar
- js-test-docker-build: jar
- docker build . -t ${js_test_tag} -f Dockerfile.js.test
- 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-js-prod:${version}
- js-prod-docker-build: jar
- docker build . -t ${js_prod_tag} -f Dockerfile.js.prod
- js-prod-docker-push: js-prod-docker-build
- docker push ${js_prod_tag}
- echo ${version} > ./version
|