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: deploy-release:
stage: deploy stage: deploy
rules: rules:
- if: $CI_COMMIT_TAG && $CI_COMMIT_BRANCH == $PROD_BRANCH - if: $CI_COMMIT_BRANCH == $PROD_BRANCH && $CI_MANUAL
variables: variables:
ITCH_USER: "cyndrdev" ITCH_USER: "cyndrdev"
ITCH_GAME: "revival" ITCH_GAME: "revival"

View File

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