diff options
author | Matt Holt <mholt@users.noreply.github.com> | 2020-03-04 13:19:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 13:19:25 -0700 |
commit | 3f5d27cd5da8f3ad53e4b794d34703922c9b824e (patch) | |
tree | 41f0594d221b73ab392268e57020fc9ac0c6ae90 | |
parent | 26fb8b3efd671a02a92ee55e93f547606285cde4 (diff) |
ci: Optimize published artifacts (#3118)
Build the published executables with CGO disabled, stripped, and with `-trimpath` for more reproducible build
-rw-r--r-- | azure-pipelines.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0695417..21be1f1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -100,7 +100,7 @@ jobs: workingDirectory: '$(modulePath)' displayName: Get dependencies - - bash: go build -v + - bash: CGO_ENABLED=0 go build -trimpath -a -ldflags="-w -s" -v workingDirectory: '$(modulePath)/cmd/caddy' displayName: Build Caddy |