diff --git a/skywalking-collector/skywalking-collector-worker/pom.xml b/skywalking-collector/skywalking-collector-worker/pom.xml index fdae9454e..1045cb715 100644 --- a/skywalking-collector/skywalking-collector-worker/pom.xml +++ b/skywalking-collector/skywalking-collector-worker/pom.xml @@ -101,7 +101,7 @@ ${docker.plugin.version} false - ${docker.cache.imageName} + skywalking/${docker.cache.imageName} ${docker.imageTag.version} diff --git a/travis/push_image.sh b/travis/push_image.sh index 598633439..a9f82f123 100644 --- a/travis/push_image.sh +++ b/travis/push_image.sh @@ -1,13 +1,19 @@ #!/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