mirror of
https://abf.rosa.ru/djam/cilium-cli.git
synced 2025-02-23 15:02:50 +00:00
0.16.11
This commit is contained in:
parent
77e034d8cb
commit
328b85bf65
2 changed files with 19 additions and 2 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
cilium-cli-0.16.10.tar.gz: 7b3c1fa2eba1fd88efd819ce086d856bcf57ec27
|
||||
cilium-cli-0.16.11.tar.gz: 4974bb6a465353016ca6ed2f6a39f47b7cb76b6d
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue