mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
ci: install Caddy from the pinned GitHub release
caddyserver.com/api/download now answers 401 without a login or API key, so the awscli-over-https job failed in Setup Caddy on every run. Download the v2.11.9 release tarball instead and verify it against the release's SHA-512 checksums. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
949952f2b6
commit
0662a982ba
1 file changed
+6
-2
@@ -56,8 +56,12 @@ jobs:
|
||||
|
||||
- name: Setup Caddy
|
||||
run: |
|
||||
curl -fsSL "https://caddyserver.com/api/download?os=linux&arch=amd64" -o caddy
|
||||
chmod +x caddy
|
||||
CADDY_VERSION=2.11.9
|
||||
base="https://github.com/caddyserver/caddy/releases/download/v${CADDY_VERSION}"
|
||||
curl -fsSLO "${base}/caddy_${CADDY_VERSION}_linux_amd64.tar.gz"
|
||||
curl -fsSLO "${base}/caddy_${CADDY_VERSION}_checksums.txt"
|
||||
grep " caddy_${CADDY_VERSION}_linux_amd64.tar.gz$" "caddy_${CADDY_VERSION}_checksums.txt" | sha512sum -c -
|
||||
tar -xzf "caddy_${CADDY_VERSION}_linux_amd64.tar.gz" caddy
|
||||
./caddy version
|
||||
echo "{
|
||||
auto_https disable_redirects
|
||||
|
||||
Reference in new issue
Block a user