mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-10 23:34:41 +00:00
TravisCI Now to Handle Releases and Build Numbering
- Preparations for introducing generator scripts and further enhancements to the Bot Blocker - Better tracking of Release Tags and Build Numbering
This commit is contained in:
parent
1c53dc485e
commit
f2563a2935
14 changed files with 83 additions and 19 deletions
16
travisCI/deploy.sh
Executable file
16
travisCI/deploy.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
YEAR=$(date +"%Y")
|
||||
MONTH=$(date +"%m")
|
||||
git config --global user.email "${GIT_EMAIL}"
|
||||
git config --global user.name "${GIT_NAME}"
|
||||
git config --global push.default simple
|
||||
git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
|
||||
export GIT_TAG=2.$YEAR-$MONTH.$TRAVIS_BUILD_NUMBER
|
||||
git fetch --tags
|
||||
msg="Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
|
||||
if git tag $GIT_TAG -a -m "$msg" 2>/dev/null; then
|
||||
git tag $GIT_TAG -a -m "Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
|
||||
git push origin master && git push origin master --tags
|
||||
ls -aR
|
||||
else echo Tag already exists!; fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue