1 changed files with 6 additions and 3 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue