mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-27 02:18:16 +00:00
Statically link binaries and remove debug information (#1615)
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
This commit is contained in:
parent
ed51191d7c
commit
0f8dfaf115
@ -2,10 +2,15 @@
|
|||||||
project_name: kube-bench
|
project_name: kube-bench
|
||||||
env:
|
env:
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
|
- CGO_ENABLED=0
|
||||||
- KUBEBENCH_CFG=/etc/kube-bench/cfg
|
- KUBEBENCH_CFG=/etc/kube-bench/cfg
|
||||||
builds:
|
builds:
|
||||||
- main: main.go
|
- main: main.go
|
||||||
binary: kube-bench
|
binary: kube-bench
|
||||||
|
tags:
|
||||||
|
- osusergo
|
||||||
|
- netgo
|
||||||
|
- static_build
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
- darwin
|
- darwin
|
||||||
@ -19,6 +24,9 @@ builds:
|
|||||||
- 6
|
- 6
|
||||||
- 7
|
- 7
|
||||||
ldflags:
|
ldflags:
|
||||||
|
- "-s"
|
||||||
|
- "-w"
|
||||||
|
- "-extldflags '-static'"
|
||||||
- "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion={{.Version}}"
|
- "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion={{.Version}}"
|
||||||
- "-X github.com/aquasecurity/kube-bench/cmd.cfgDir={{.Env.KUBEBENCH_CFG}}"
|
- "-X github.com/aquasecurity/kube-bench/cmd.cfgDir={{.Env.KUBEBENCH_CFG}}"
|
||||||
# Archive customization
|
# Archive customization
|
||||||
|
Loading…
Reference in New Issue
Block a user