diff --git a/.github/workflows/dev-deploy.yml b/.github/workflows/dev-deploy.yml index 6a57797..bad424a 100644 --- a/.github/workflows/dev-deploy.yml +++ b/.github/workflows/dev-deploy.yml @@ -69,6 +69,7 @@ jobs: cd ~/snackgame-server/repo git fetch origin dev git checkout dev - git pull origin dev + git pull origin dev --no-recurse-submodules + chmod +x scripts/deploy-dev.sh scripts/deploy-dev.sh \ No newline at end of file diff --git a/.github/workflows/production-deploy.yml b/.github/workflows/production-deploy.yml index cda77af..feffd4c 100644 --- a/.github/workflows/production-deploy.yml +++ b/.github/workflows/production-deploy.yml @@ -70,7 +70,8 @@ jobs: cd ~/snackgame-server/repo git fetch origin main git checkout main - git pull origin main + git pull origin main --no-recurse-submodules + chmod +x scripts/deploy-rolling.sh scripts/deploy-rolling.sh \ ${{ secrets.NLB_BACKEND_02_HTTP }} \ @@ -100,7 +101,8 @@ jobs: cd ~/snackgame-server/repo git fetch origin main git checkout main - git pull origin main + git pull origin main --no-recurse-submodules + chmod +x scripts/deploy-rolling.sh scripts/deploy-rolling.sh \ ${{ secrets.NLB_BACKEND_01_HTTP }} \ diff --git a/scripts/deploy-rolling.sh b/scripts/deploy-rolling.sh index 9803f69..49fcbb1 100755 --- a/scripts/deploy-rolling.sh +++ b/scripts/deploy-rolling.sh @@ -11,6 +11,9 @@ HTTP_BACKEND="$1" HTTPS_BACKEND="$2" + +export PATH="$HOME/bin:$PATH" + COMPOSE_DIR="$HOME/snackgame-server" HEALTH_CHECK_URL="http://localhost:8080/rankings/1?by=BEST_SCORE" HEALTH_CHECK_TIMEOUT=120