mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+github.com/caddyserver/xcaddy
This commit is contained in:
parent
0d2cdc6256
commit
bd897e7ebc
1 changed files with 32 additions and 0 deletions
32
projects/github.com/caddyserver/xcaddy/package.yml
Normal file
32
projects/github.com/caddyserver/xcaddy/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/caddyserver/xcaddy/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
display-name: xcaddy
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: caddyserver/xcaddy
|
||||||
|
strip:
|
||||||
|
- /^v/
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
go.dev: '^1.21'
|
||||||
|
|
||||||
|
build:
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
linux:
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
script: go build -v -trimpath -ldflags="${LDFLAGS}" -o {{prefix}}/bin/xcaddy ./cmd/xcaddy
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/xcaddy
|
||||||
|
|
||||||
|
test:
|
||||||
|
script: |
|
||||||
|
xcaddy build --with github.com/greenpau/caddy-security
|
||||||
|
test "$($PWD/caddy list-modules | grep security)" = security
|
Loading…
Reference in a new issue