Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop git tagging non-master branches on github staging / dockstore #72

Merged
merged 1 commit into from
May 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions travis/github-viral-ngs-staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down