From 764a68db9c7acc82ca5ddf622efef64274e9041d Mon Sep 17 00:00:00 2001 From: Danny Park Date: Fri, 15 May 2020 06:58:09 -0400 Subject: [PATCH] stop git tagging non-master branches on github staging / dockstore --- travis/github-viral-ngs-staging.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/travis/github-viral-ngs-staging.sh b/travis/github-viral-ngs-staging.sh index 4f97aff91..44539d689 100755 --- a/travis/github-viral-ngs-staging.sh +++ b/travis/github-viral-ngs-staging.sh @@ -30,10 +30,14 @@ if [ -z "$TRAVIS_PULL_REQUEST_BRANCH" ]; then git add -A -f git diff-index --quiet HEAD || git commit -q -m "CI push github.com/broadinstitute/viral-pipelines:$VERSION" - git tag $VERSION - git push origin --tags + if [[ "$TRAVIS_BRANCH" == "master" ]]; then + # for dockstore, don't bother tagging every branch commit that is non-master -- just git push the branch instead + git tag $VERSION + git push origin --tags + fi if [ -z "$TRAVIS_TAG" ]; then + # if TRAVIS_TAG is set, skip this, since a separate Travis build is already pushing master branch anyway git push -f -u origin $TRAVIS_BRANCH fi