mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue