Fix: invoke git-guard.sh via bash explicitly so tracked file mode bit doesn't matter
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
This commit is contained in:
@@ -30,7 +30,8 @@ GLOBAL_ENV="$DIR/deploy/global.env"
|
|||||||
|
|
||||||
# ── Pre-flight: ensure local checkout is in sync with Gitea ─────────────────
|
# ── Pre-flight: ensure local checkout is in sync with Gitea ─────────────────
|
||||||
# Prevents deploying from a stale/diverged local tree (see incident 2026-08-26).
|
# 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; }
|
# Invoked via `bash` explicitly so the tracked file's exec bit doesn't matter.
|
||||||
|
bash "$DIR/deploy/git-guard.sh" || { echo "ERROR: git-guard check failed. Deploy aborted."; exit 1; }
|
||||||
|
|
||||||
# ── Locate compose file(s) ──────────────────────────────────────────────────
|
# ── Locate compose file(s) ──────────────────────────────────────────────────
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user