From bd897e7ebcf2083e9940faa96d4424734590a25b Mon Sep 17 00:00:00 2001 From: tannevaled Date: Fri, 26 Jan 2024 16:51:39 +0100 Subject: [PATCH] +github.com/caddyserver/xcaddy --- .../github.com/caddyserver/xcaddy/package.yml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 projects/github.com/caddyserver/xcaddy/package.yml diff --git a/projects/github.com/caddyserver/xcaddy/package.yml b/projects/github.com/caddyserver/xcaddy/package.yml new file mode 100644 index 00000000..6f400457 --- /dev/null +++ b/projects/github.com/caddyserver/xcaddy/package.yml @@ -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