mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-10 15:34:24 +00:00
parent
164e3603d3
commit
bde2e05289
8 changed files with 37 additions and 20 deletions
|
@ -72,10 +72,10 @@ MONTH=$(date +"%m")
|
|||
|
||||
lastbuild=$(cat ./dev-tools/buildnumber)
|
||||
thisbuild=$((lastbuild + 1))
|
||||
echo ${thisbuild} > ./dev-tools/buildnumber
|
||||
|
||||
releaseNewVersion () {
|
||||
latestbuild=V4.${YEAR}.${MONTH}.${thisbuild}
|
||||
echo ${latestbuild}
|
||||
printf "\n"
|
||||
echo "${bold}${green}All Nginx Tests Completed"
|
||||
echo "${bold}${green}All Bot and Referrer Testing Completed"
|
||||
|
@ -83,25 +83,30 @@ echo "${bold}${green}All Function Testing Completed"
|
|||
echo "${bold}${magenta}Releasing ${latestbuild}"
|
||||
}
|
||||
|
||||
updatebuildnumber () {
|
||||
echo ${thisbuild} > ./dev-tools/buildnumber
|
||||
}
|
||||
|
||||
commitBuildChanges () {
|
||||
updatebuildnumber
|
||||
git config --global user.name "mitchellkrogza"
|
||||
git config --global user.email "mitchellkrog@gmail.com"
|
||||
git add -A
|
||||
git commit -m "${LATESTBUILD}"
|
||||
git commit -m "${latestbuild}"
|
||||
git push
|
||||
}
|
||||
|
||||
deployPackage () {
|
||||
printf "\n"
|
||||
echo "${bold}${green}DEPLOYING ${LATESTBUILD}"
|
||||
echo "${bold}${green}DEPLOYING ${latestbuild}"
|
||||
printf "\n"
|
||||
git config --global user.name "mitchellkrogza"
|
||||
git config --global user.email "mitchellkrog@gmail.com"
|
||||
export GIT_TAG=V4.${YEAR}.${MONTH}.${thisbuild}
|
||||
git tag ${GIT_TAG} -a -m "V4.${YEAR}.${MONTH}.${thisbuild}"
|
||||
export GIT_TAG=${latestbuild}
|
||||
git tag ${GIT_TAG} -a -m "${latestbuild}"
|
||||
sudo git push origin master && git push origin master --tags
|
||||
echo "${bold}${green}-------------------------------"
|
||||
echo "${bold}${green}Deploying V4.${YEAR}.${MONTH}.${TRAVIS_BUILD_NUMBER}"
|
||||
echo "${bold}${green}Deploying ${latestbuild}"
|
||||
echo "${bold}${green}-------------------------------"
|
||||
printf "\n\n"
|
||||
}
|
||||
|
@ -114,6 +119,7 @@ releaseNewVersion
|
|||
commitBuildChanges
|
||||
deployPackage
|
||||
|
||||
|
||||
# ----------------------
|
||||
# Exit With Error Number
|
||||
# ----------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue