only deploy to prod for manual pipelines

This commit is contained in:
Cat Flynn 2021-02-01 20:13:24 +00:00
parent d682861585
commit 17c236831e
2 changed files with 3 additions and 6 deletions

View File

@ -59,7 +59,7 @@ deploy-dev:
deploy-release:
stage: deploy
rules:
- if: $CI_COMMIT_TAG && $CI_COMMIT_BRANCH == $PROD_BRANCH
- if: $CI_COMMIT_BRANCH == $PROD_BRANCH && $CI_MANUAL
variables:
ITCH_USER: "cyndrdev"
ITCH_GAME: "revival"

View File

@ -49,7 +49,6 @@ do
# check for exit
# TODO: ideally we should have a better indicator than the package manager's shutdown message
if [[ $line == *"[Package Manager] Server::Kill -- Server was shutdown"* ]]; then
echo "exit loop"
break
fi
done
@ -57,9 +56,7 @@ done
# kill zombie tail process
kill $(<"$work/tail.pid")
exitcode=$(cat $work/exitcode)
echo "exit $exitcode"
exit $exitcode
# exit with unity's exit code
exit $(cat $work/exitcode)
# vim: tabstop=4 shiftwidth=4 expandtab