Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.