diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0695417e..21be1f15 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