提交 5c40e462 编写于 作者: Z zhangxin

fix the image name of collector issue and push docker images when skywalking...

fix the image name of collector issue and push docker images when skywalking is tagged and the branch is master
上级 be901d52
sudo: required
services:
- docker
language: java
install:
- cd ci-dependencies
......
......@@ -101,7 +101,7 @@
<version>${docker.plugin.version}</version>
<configuration>
<skipDocker>false</skipDocker>
<imageName>${docker.cache.imageName}</imageName>
<imageName>skywalking/${docker.cache.imageName}</imageName>
<imageTags>
<imageTag>${docker.imageTag.version}</imageTag>
</imageTags>
......
#!/bin/sh
check_pull_is_tagged() {
if [ "${TRAVIS_TAG}" = "" ]; then
if [ "${TRAVIS_TAG}" == "" ]; then
return 1
else
echo "Push the collector image of ${TRAVIS_TAG} version."
return 0
fi
}
check_branch_is_master(){
if [ "${TRAVIS_BRANCH}" == "master" ]; then
return 0;
else
return 1;
fi
}
push_collector_image() {
......@@ -18,7 +24,7 @@ push_collector_image() {
}
if check_pull_is_tagged; then
if check_pull_is_tagged && check_branch_is_master; then
push_collector_image
echo "Push is 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.
先完成此消息的编辑!
想要评论请 注册