fix: download caddy binary in CI for validate step
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/pr/edge-subpath Pipeline failed
ci/woodpecker/pr/smoke-init Pipeline failed

This commit is contained in:
dev-qwen2 2026-04-19 17:24:30 +00:00
parent e99604b7dc
commit 558027f097

View file

@ -122,10 +122,13 @@ steps:
# 0 — configuration is valid # 0 — configuration is valid
# 1 — configuration has errors # 1 — configuration has errors
- name: caddy-validate - name: caddy-validate
image: caddy:2-alpine image: alpine:3.19
commands: commands:
- caddy version - apk add --no-cache ca-certificates
- caddy validate --config /tmp/edge-render/Caddyfile.rendered --adapter caddyfile - curl -sS -o /tmp/caddy "https://caddyserver.com/api/download?os=linux&arch=amd64"
- chmod +x /tmp/caddy
- /tmp/caddy version
- /tmp/caddy validate --config /tmp/edge-render/Caddyfile.rendered --adapter caddyfile
# ── 4. Caddyfile routing block shape test ───────────────────────────────── # ── 4. Caddyfile routing block shape test ─────────────────────────────────
# Verify that the Caddyfile contains all required routing blocks: # Verify that the Caddyfile contains all required routing blocks: