@@ -10,7 +10,7 @@ builds:
1010 goarch :
1111 - amd64
1212 env :
13- - CGO_ENABLED=0
13+ - CGO_ENABLED=1
1414 - GO111MODULE=on
1515 main : ffi/main.go
1616 flags : -buildmode=c-shared
@@ -19,22 +19,8 @@ builds:
1919 - id : preflight
2020 goos :
2121 - linux
22- - windows
23- goarch :
24- - amd64
25- env :
26- - CGO_ENABLED=0
27- main : cmd/preflight/main.go
28- ldflags : -s -w
29- -X github.com/replicatedhq/troubleshoot/pkg/version.version={{.Version}}
30- -X github.com/replicatedhq/troubleshoot/pkg/version.gitSHA={{.Commit}}
31- -X github.com/replicatedhq/troubleshoot/pkg/version.buildTime={{.Date}}
32- flags : -tags netgo -installsuffix netgo
33- binary : preflight
34- hooks : {}
35- - id : preflight-darwin
36- goos :
3722 - darwin
23+ - windows
3824 goarch :
3925 - amd64
4026 env :
@@ -44,28 +30,15 @@ builds:
4430 -X github.com/replicatedhq/troubleshoot/pkg/version.version={{.Version}}
4531 -X github.com/replicatedhq/troubleshoot/pkg/version.gitSHA={{.Commit}}
4632 -X github.com/replicatedhq/troubleshoot/pkg/version.buildTime={{.Date}}
33+ -extldflags "-static"
4734 flags : -tags netgo -installsuffix netgo
4835 binary : preflight
4936 hooks : {}
5037 - id : support-bundle
5138 goos :
5239 - linux
53- - windows
54- goarch :
55- - amd64
56- env :
57- - CGO_ENABLED=0
58- main : cmd/troubleshoot/main.go
59- ldflags : -s -w
60- -X github.com/replicatedhq/troubleshoot/pkg/version.version={{.Version}}
61- -X github.com/replicatedhq/troubleshoot/pkg/version.gitSHA={{.Commit}}
62- -X github.com/replicatedhq/troubleshoot/pkg/version.buildTime={{.Date}}
63- flags : -tags netgo -installsuffix netgo
64- binary : support-bundle
65- hooks : {}
66- - id : support-bundle-darwin
67- goos :
6840 - darwin
41+ - windows
6942 goarch :
7043 - amd64
7144 env :
@@ -75,6 +48,7 @@ builds:
7548 -X github.com/replicatedhq/troubleshoot/pkg/version.version={{.Version}}
7649 -X github.com/replicatedhq/troubleshoot/pkg/version.gitSHA={{.Commit}}
7750 -X github.com/replicatedhq/troubleshoot/pkg/version.buildTime={{.Date}}
51+ -extldflags "-static"
7852 flags : -tags netgo -installsuffix netgo
7953 binary : support-bundle
8054 hooks : {}
@@ -87,7 +61,6 @@ archives:
8761 - id : preflight
8862 builds :
8963 - preflight
90- - preflight-darwin
9164 format : tar.gz
9265 format_overrides :
9366 - goos : windows
@@ -105,7 +78,6 @@ archives:
10578 - id : support-bundle
10679 builds :
10780 - support-bundle
108- - support-bundle-darwin
10981 format : tar.gz
11082 format_overrides :
11183 - goos : windows
@@ -138,4 +110,4 @@ dockers:
138110 - " replicated/preflight:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
139111 binaries :
140112 - support-bundle
141- - preflight
113+ - preflight
0 commit comments