mirror of
https://abf.rosa.ru/djam/kube-bench.git
synced 2025-02-23 14:52:54 +00:00
0.8.0
This commit is contained in:
parent
2ab51f541f
commit
aa88fee355
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ trivy fs --scanners vuln --format cosign-vuln .
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export GOPROXY=direct
|
export GOPROXY=https://proxy.golang.org/cached-only
|
||||||
CGO_ENABLED=0 go build -ldflags "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion=%{version}" -o bin/%{name} .
|
CGO_ENABLED=0 go build -ldflags "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion=%{version}" -o bin/%{name} .
|
||||||
|
|
||||||
upx bin/%{name}
|
upx bin/%{name}
|
||||||
|
@ -46,7 +46,7 @@ install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export GOPROXY=direct
|
export GOPROXY=https://proxy.golang.org/cached-only
|
||||||
#go test ./...
|
#go test ./...
|
||||||
|
|
||||||
%if %{secscan}
|
%if %{secscan}
|
||||||
|
|
Loading…
Add table
Reference in a new issue