fix: add curl to apk install in caddy-validate step
Some checks are pending
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/pr/edge-subpath Pipeline is pending
ci/woodpecker/pr/smoke-init Pipeline is pending

The step runs `curl -sS -o /tmp/caddy ...` to download the caddy binary
but only installs ca-certificates. curl is not in alpine:3.19 base image.
Adding curl to the apk add line so the download actually runs.

Fixes edge-subpath/caddy-validate exit 127 (command not found) on
pipelines targeting fix/issue-1025-3 — see #1025.
This commit is contained in:
disinto-admin 2026-04-20 08:10:58 +00:00
parent 6b81e2a322
commit 7763facb11

View file

@ -103,7 +103,7 @@ steps:
- name: caddy-validate - name: caddy-validate
image: alpine:3.19 image: alpine:3.19
commands: commands:
- apk add --no-cache ca-certificates - apk add --no-cache ca-certificates curl
- curl -sS -o /tmp/caddy "https://caddyserver.com/api/download?os=linux&arch=amd64" - curl -sS -o /tmp/caddy "https://caddyserver.com/api/download?os=linux&arch=amd64"
- chmod +x /tmp/caddy - chmod +x /tmp/caddy
- /tmp/caddy version - /tmp/caddy version