mirror of https://github.com/caddyserver/caddy.git
ci: Optimize published artifacts (#3118)
Build the published executables with CGO disabled, stripped, and with `-trimpath` for more reproducible build
This commit is contained in:
parent
26fb8b3efd
commit
3f5d27cd5d
|
@ -100,7 +100,7 @@ jobs:
|
||||||
workingDirectory: '$(modulePath)'
|
workingDirectory: '$(modulePath)'
|
||||||
displayName: Get dependencies
|
displayName: Get dependencies
|
||||||
|
|
||||||
- bash: go build -v
|
- bash: CGO_ENABLED=0 go build -trimpath -a -ldflags="-w -s" -v
|
||||||
workingDirectory: '$(modulePath)/cmd/caddy'
|
workingDirectory: '$(modulePath)/cmd/caddy'
|
||||||
displayName: Build Caddy
|
displayName: Build Caddy
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue