Skip to content

Commit 52f7fc8

Browse files
changing ordering of git commands
1 parent 9158b97 commit 52f7fc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

travis-ci/deploy2.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ git config --global user.email "${GIT_EMAIL}"
88
git config --global user.name "${GIT_NAME}"
99
git config --global push.default simple
1010
#sudo git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
11-
export GIT_TAG=V2.$YEAR-$MONTH.$TRAVIS_BUILD_NUMBER
1211
git fetch --tags
1312
msg="Tag $GIT_TAG Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
1413
#if git tag $GIT_TAG -a -m "$msg" 2>/dev/null; then
@@ -17,10 +16,11 @@ sudo chown travis:travis $TRAVIS_BUILD_DIR/globalblacklist.conf
1716
git add $TRAVIS_BUILD_DIR/globalblacklist.conf
1817
#git add .
1918
#git add $TRAVIS_BUILD_DIR/build.txt
19+
export GIT_TAG=V2.$YEAR-$MONTH.$TRAVIS_BUILD_NUMBER
2020
git tag $GIT_TAG -a -m "Tag $GIT_TAG Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
21-
git commit -am "Update build version file $GIT_TAG with $TRAVIS_BUILD_NUMBER"
22-
#sudo git push origin master -f && git push origin master --tags -f
23-
git push https://${GH_TOKEN}@github.com/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration --all
21+
#git commit -am "Update build version file $GIT_TAG with $TRAVIS_BUILD_NUMBER"
22+
sudo git push origin master && git push origin master --tags
23+
#git push https://${GH_TOKEN}@github.com/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration --all
2424
ls -aR
2525
#cat $TRAVIS_BUILD_DIR/globalblacklist.conf
2626
#ls -la $TRAVIS_BUILD_DIR

0 commit comments

Comments
 (0)