Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis CI kick off build on new tag

I am trying to use travis for continues integration with github. I want to create a custom deploy on new tags. The problem is I can not get travis to kick of the build when I create tag.

I believe an alternative would be to create a release branch...

my travis.yml looks like this

language: node_js
node_js:
   - "0.10"
# whitelist
branches:
  only:
    - master

after_success:
  ./build/update-ghpages.sh
like image 481
Gil O. Avatar asked Oct 01 '22 05:10

Gil O.


1 Answers

Here's a few things:

Are you pushing your tags to github with git push --tags? Are you pulling your tags on travis-ci with git fetch --tags?

You branch white list could also prevent tagged builds from running, as they could be blocked for not being master branch.

Are your tags based off branch master? If so then the last comment shouldn't apply, as the tagged commit should still be built from the commit on master and your deployment program will still recognize it is a tag if git fetch --tags is performed.

If none of these suggestions help you I'll be happy to take a look at your setup if you give me a link to your travis-ci build.

like image 196
joshua-anderson Avatar answered Oct 03 '22 19:10

joshua-anderson