mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-05 12:09:57 +00:00
Change Build and Version numbering structure.
- Release Names / Versions now dated and easier for users to keep track of.
This commit is contained in:
parent
4bc7cb7c7b
commit
94c60cd5ac
1 changed files with 2 additions and 3 deletions
|
@ -1,11 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
YEAR=$(date +"%Y")
|
BUILDDATE=$(date +"%Y-%m-%d")
|
||||||
MONTH=$(date +"%m")
|
|
||||||
git config --global user.email "${GIT_EMAIL}"
|
git config --global user.email "${GIT_EMAIL}"
|
||||||
git config --global user.name "${GIT_NAME}"
|
git config --global user.name "${GIT_NAME}"
|
||||||
git config --global push.default simple
|
git config --global push.default simple
|
||||||
git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
|
git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
|
||||||
export GIT_TAG=2.$YEAR-$MONTH.$TRAVIS_BUILD_NUMBER
|
export GIT_TAG=$BUILDDATE.Build-$TRAVIS_BUILD_NUMBER
|
||||||
git fetch --tags
|
git fetch --tags
|
||||||
msg="Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
|
msg="Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
|
||||||
if git tag $GIT_TAG -a -m "$msg" 2>/dev/null; then
|
if git tag $GIT_TAG -a -m "$msg" 2>/dev/null; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue