Working on issue not syncing to github correctly.

This commit is contained in:
Thorsten Eckel 2016-10-19 07:25:10 +02:00
parent 551846a1a5
commit a53a6fccee

View file

@ -10,7 +10,17 @@ if echo $CI_BUILD_REF_NAME | grep private; then
fi fi
git checkout $CI_BUILD_REF_NAME git checkout $CI_BUILD_REF_NAME
git pull --rebase origin $CI_BUILD_REF_NAME if [ "$CI_BUILD_REF_NAME" != "$CI_BUILD_TAG" ]; then
if git remote | grep github > /dev/null; then git remote rm github; fi git pull --rebase origin $CI_BUILD_REF_NAME
fi
if git remote | grep github > /dev/null; then
git remote rm github
fi
git remote add github $GITHUB_DEST git remote add github $GITHUB_DEST
git push github $CI_BUILD_REF_NAME
if [ "$CI_BUILD_REF_NAME" != "$CI_BUILD_TAG" ]; then
git push github $CI_BUILD_REF_NAME
else
git push github --tags
fi