fix: cd to site dir before docker compose commands
All checks were successful
CI / nightly-e2e (pull_request) Has been skipped
CI / deploy (pull_request) Has been skipped
CI / pr-e2e (pull_request) Successful in 1m7s
CI / ci (pull_request) Successful in 1m15s

docker compose stats the cwd when parsing compose files; if cwd is
not accessible to the deploy user the command fails.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
codex_a
2026-03-01 09:38:54 +00:00
parent ec3e1ee1bf
commit 229c0f8b48

View File

@@ -6,6 +6,8 @@ set -euo pipefail
SITE_DIR=/srv/sum/nohype SITE_DIR=/srv/sum/nohype
APP_DIR=${SITE_DIR}/app APP_DIR=${SITE_DIR}/app
cd "${SITE_DIR}"
echo "==> Pulling latest code" echo "==> Pulling latest code"
git -C "${APP_DIR}" pull origin main git -C "${APP_DIR}" pull origin main