Add: call git-guard.sh at top of stack-deploy.sh to enforce sync before deploy
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2026-08-26 22:31:12 -07:00
parent 0bc117c868
commit 32e30f7e8b
+4
View File
@@ -28,6 +28,10 @@ DIR="/volume1/docker/compose-files"
PY="$DIR/deploy/envparse.py"
GLOBAL_ENV="$DIR/deploy/global.env"
# ── Pre-flight: ensure local checkout is in sync with Gitea ─────────────────
# Prevents deploying from a stale/diverged local tree (see incident 2026-08-26).
"$DIR/deploy/git-guard.sh" || { echo "ERROR: git-guard check failed. Deploy aborted."; exit 1; }
# ── Locate compose file(s) ──────────────────────────────────────────────────
FOLDER="$DIR/$STACK"