File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Custom Caddy (Windows)
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ caddy_version :
7+ description : " Версия Caddy (например, v2.8.4)"
8+ required : true
9+ default : " v2.10.2"
10+
11+ jobs :
12+ build :
13+ runs-on : windows-latest
14+
15+ steps :
16+ # 1. Checkout репозиторий
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+
20+ # 2. Установка Go
21+ - name : Setup Go
22+ uses : actions/setup-go@v5
23+ with :
24+ go-version : " 1.25.6"
25+
26+ # 3. Установка xcaddy
27+ - name : Install xcaddy
28+ shell : pwsh
29+ run : |
30+ go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
31+ echo "$env:USERPROFILE\go\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
32+
33+ # 4. Сборка Caddy с модулями и указанной версией
34+ - name : Build Caddy with modules
35+ shell : pwsh
36+ run : |
37+ xcaddy build ${{ github.event.inputs.caddy_version }} `
38+ --with github.com/gerolf-vent/caddy-vault-storage `
39+ --with github.com/mohammed90/caddy-pocketbase
40+
41+ # 5. Сохранение артефакта
42+ - name : Upload Caddy binary
43+ uses : actions/upload-artifact@v4
44+ with :
45+ name : caddy-custom-windows
46+ path : ./caddy.exe
You can’t perform that action at this time.
0 commit comments