Skip to content

Instantly share code, notes, and snippets.

@clivecorbishley
Last active October 15, 2018 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save clivecorbishley/851fcb07307ccccdfab4676c0ceb8628 to your computer and use it in GitHub Desktop.
Save clivecorbishley/851fcb07307ccccdfab4676c0ceb8628 to your computer and use it in GitHub Desktop.
Version Tracking Travis config
---
...
env:
global:
- APP_VERSION=3.23
...
jobs:
include:
- stage: Deploy
before_deploy:
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export VERSION_NUMBER=$ZADEV_VERSION.$TRAVIS_BUILD_NUMBER
- git tag $VERSION_NUMBER -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
- git push -q https://$TAGPERM@github.com/<Organisation>/<Repository> --tags
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment