提交 38b92563 编写于 作者: Z zhangxin

modify deploy to push

上级 6d9df9ef
......@@ -13,4 +13,4 @@ script:
after_success:
- mvn clean cobertura:cobertura coveralls:report
- bash ./travis/deploy_image.sh
- bash ./travis/push_image.sh
#!/bin/sh
check_pull_is_tag_or_release() {
check_pull_is_release() {
if [ "${TRAVIS_TAG}" = "" ]; then
return 1
else
echo "[Deploying] deploy tag ${TRAVIS_TAG}."
echo "[Pushing] pushing docker image of ${TRAVIS_TAG}."
return 0
fi
}
deploy_collector_image() {
push_collector_image() {
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
mvn clean package docker:build
docker push skywalking/skywalking-collector:latest
......@@ -18,7 +18,7 @@ deploy_collector_image() {
}
if check_pull_is_tag_or_release; then
deploy_collector_image
echo "[Deploying] deploy Done!"
if check_pull_is_release; then
push_collector_image
echo "[Pushing] push Done!"
fi
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册