Allow manual publishing to stage data

This commit is contained in:
TSC competition notification bot 2024-02-14 15:59:17 +01:00
parent a1bfd25b29
commit 521b30ed31

View File

@ -13,6 +13,8 @@ cmd="$SSH_ORIGINAL_COMMAND"
publishToStage= publishToStage=
publishToProduction=y publishToProduction=y
branch=develop
parseCMD() { parseCMD() {
while [ $# -gt 0 ] while [ $# -gt 0 ]
do do
@ -24,6 +26,13 @@ parseCMD() {
publishToStage=y publishToStage=y
publishToProduction= publishToProduction=
;; ;;
--branch)
branch="$1"
shift
;;
--debug)
set -x
;;
*) *)
echo "Unknown command $part" echo "Unknown command $part"
exit 1 exit 1
@ -49,8 +58,8 @@ cd "$src"
echo "Fetching the latest git commits" echo "Fetching the latest git commits"
git fetch git fetch
echo "Switching tothe latest branch commit" echo "Switching to the latest commit on branch $branch"
git reset --hard origin/develop git reset --hard "origin/$branch"
echo "Updating NPM packages" echo "Updating NPM packages"
npm ci npm ci