Skip to content

Commit

Permalink
Build update: Add prefix number to build number and update commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
DanVanAtta committed Sep 14, 2020
1 parent ebe718a commit 838bc77
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .travis/push_tag
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ readonly REPO_URL="https://${BOT_AUTH_TOKEN}@github.com/triplea-game/assets.git"
git config --global user.email "[email protected]"
git config --global user.name "tripleabuilderbot"

## Add a '1' prefix to the build number to avoid
## collisions. A travis migration to travic-ci.com
## reset the build numbers.
RELEASE_NUMBER="1$TRAVIS_BUILD_NUMBER"
git tag "$RELEASE_NUMBER" -a -f -m "$RELEASE_NUMBER"
## Add a '2' prefix to increment the build number.
## The build numbers are out of order, the '2' will ensure
## the latest tag is actually the latest build

RELEASE_NUMBER="$TRAVIS_BUILD_NUMBER"
git tag "2$RELEASE_NUMBER" -a -f -m "2$RELEASE_NUMBER"
git push -q "$REPO_URL" --tags

0 comments on commit 838bc77

Please sign in to comment.