Add: call git-guard.sh at top of stack-deploy.sh to enforce sync before deploy
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
This commit is contained in:
@@ -28,6 +28,10 @@ DIR="/volume1/docker/compose-files"
|
|||||||
PY="$DIR/deploy/envparse.py"
|
PY="$DIR/deploy/envparse.py"
|
||||||
GLOBAL_ENV="$DIR/deploy/global.env"
|
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) ──────────────────────────────────────────────────
|
# ── Locate compose file(s) ──────────────────────────────────────────────────
|
||||||
|
|
||||||
FOLDER="$DIR/$STACK"
|
FOLDER="$DIR/$STACK"
|
||||||
|
|||||||
Reference in New Issue
Block a user