Skip to content

Commit e99eda3

Browse files
committed
ci: update caddy job to use GitHub Releases
The caddyserver.com download page is unreliable, and it also recommends to use GitHub releases instead.
1 parent cc5a394 commit e99eda3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/setup-caddy/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ runs:
55
- shell: bash
66
run: |
77
set -x
8-
sudo curl 'https://caddyserver.com/api/download?os=linux&arch=amd64' -o /usr/bin/caddy
8+
sudo curl -s -L --max-time 120 --retry-delay 10 --retry 3 'https://github.com/caddyserver/caddy/releases/download/v2.7.6/caddy_2.7.6_linux_amd64.tar.gz' | tar -xz -C /usr/bin caddy
99
sudo chmod +x /usr/bin/caddy
1010
sudo caddy start --config ext/curl/tests/Caddyfile

0 commit comments

Comments
 (0)