Skip to content

Commit

Permalink
Merge pull request #477 from azavea/rde/feature/travis-publish-releas…
Browse files Browse the repository at this point in the history
…e-branch

Add travis quay publishing to release branches
  • Loading branch information
lossyrob committed Oct 9, 2018
2 parents e27a5e5 + a4da179 commit ea0ed7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ deploy:
script: .travis/deploy
skip_cleanup: true
on:
branch: develop
all_branches: true
condition: $TRAVIS_BRANCH =~ ^develop|[0-9]+(\.[0-9]+)*$
- provider: script
script: .travis/deploy
skip_cleanup: true
Expand Down
6 changes: 4 additions & 2 deletions .travis/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ if [ "$QUAY_USERNAME" != "" -a "$QUAY_PASSWORD" != "" ]; then
COMMIT=${TRAVIS_COMMIT:0:7}
.travis/build "BUILD_ALL" && \
.travis/publish "$COMMIT" "TRUE";
else
echo "INFO: non-tag branch is not 'develop', skipping publish";
elif [[ $TRAVIS_BRANCH =~ ^[0-9]+(\.[0-9]+)*$ ]]; then
echo "INFO: Push to release brach, publishing branch name.";
.travis/build "BUILD_ALL" && \
.travis/publish "$TRAVIS_BRANCH" "FALSE";
fi
else
echo "INFO: Push to tag, publishing tag name.";
Expand Down

0 comments on commit ea0ed7b

Please sign in to comment.