1 changed files with 2 additions and 10 deletions
|
|
@ -130,17 +130,9 @@ steps:
|
||||||
echo "=== Validating Caddyfile routing blocks ==="
|
echo "=== Validating Caddyfile routing blocks ==="
|
||||||
|
|
||||||
# Check that all required subpath handlers exist
|
# Check that all required subpath handlers exist
|
||||||
REQUIRED_HANDLERS=(
|
# POSIX-safe loop (alpine /bin/sh has no arrays)
|
||||||
"handle /forge/\*"
|
|
||||||
"handle /ci/\*"
|
|
||||||
"handle /staging/\*"
|
|
||||||
"handle /chat/login"
|
|
||||||
"handle /chat/oauth/callback"
|
|
||||||
"handle /chat/\*"
|
|
||||||
)
|
|
||||||
|
|
||||||
FAILED=0
|
FAILED=0
|
||||||
for handler in "$${REQUIRED_HANDLERS[@]}"; do
|
for handler in "handle /forge/\*" "handle /ci/\*" "handle /staging/\*" "handle /chat/login" "handle /chat/oauth/callback" "handle /chat/\*"; do
|
||||||
if grep -q "$handler" "$CADDYFILE"; then
|
if grep -q "$handler" "$CADDYFILE"; then
|
||||||
echo "[PASS] Found handler: $handler"
|
echo "[PASS] Found handler: $handler"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue