This commit is contained in:
Sergey Zhemoytel 2024-06-27 18:50:57 +00:00
parent 77e034d8cb
commit 328b85bf65
2 changed files with 19 additions and 2 deletions

View file

@ -1,2 +1,2 @@
sources:
cilium-cli-0.16.10.tar.gz: 7b3c1fa2eba1fd88efd819ce086d856bcf57ec27
cilium-cli-0.16.11.tar.gz: 4974bb6a465353016ca6ed2f6a39f47b7cb76b6d

View file

@ -1,8 +1,9 @@
%define debug %nil
%define debug_package %nil
%define secscan 1
Name: cilium-cli
Version: 0.16.10
Version: 0.16.11
Release: 1
Summary: CLI to install, manage & troubleshoot Kubernetes clusters running Cilium
URL: https://cilium.io
@ -13,12 +14,22 @@ BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
%if %{secscan}
BuildRequires: clamav
BuildRequires: trivy
%endif
%description
%{summary}
%prep
%setup -q
%if %{secscan}
clamscan -ir .
trivy fs --scanners vuln --format cosign-vuln .
%endif
%build
CGO_ENABLED=0 go build -ldflags '-w -s -X github.com/cilium/cilium-cli/defaults.CLIVersion=%{version}' -o bin/%{name} ./cmd/cilium
@ -31,4 +42,10 @@ install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%doc README.md LICENSE
%{_bindir}/%{name}
%check
export GOPROXY=direct
go test ./...
%if %{secscan}
clamscan -ir %{buildroot}
%endif