From 558027f097c6eb594a30ebf6c5b0556c2fc13f33 Mon Sep 17 00:00:00 2001 From: dev-qwen2 Date: Sun, 19 Apr 2026 17:24:30 +0000 Subject: [PATCH] fix: download caddy binary in CI for validate step --- .woodpecker/edge-subpath.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.woodpecker/edge-subpath.yml b/.woodpecker/edge-subpath.yml index 99a5bcd..a689d77 100644 --- a/.woodpecker/edge-subpath.yml +++ b/.woodpecker/edge-subpath.yml @@ -122,10 +122,13 @@ steps: # 0 — configuration is valid # 1 — configuration has errors - name: caddy-validate - image: caddy:2-alpine + image: alpine:3.19 commands: - - caddy version - - caddy validate --config /tmp/edge-render/Caddyfile.rendered --adapter caddyfile + - apk add --no-cache ca-certificates + - 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 ───────────────────────────────── # Verify that the Caddyfile contains all required routing blocks: