mirror of
https://abf.rosa.ru/djam/terraform-provider-yandex.git
synced 2025-02-23 03:02:46 +00:00
0.122.0
This commit is contained in:
parent
1f8f51bf5c
commit
53c3f3127e
1 changed files with 19 additions and 0 deletions
|
@ -6,6 +6,8 @@
|
|||
%else
|
||||
%global goarch 386
|
||||
%endif
|
||||
%define secscan 1
|
||||
|
||||
|
||||
Name: terraform-provider-%{tfprovider}
|
||||
Version: 0.122.0
|
||||
|
@ -20,11 +22,21 @@ BuildRequires: git-core
|
|||
BuildRequires: upx
|
||||
BuildRequires: terraform
|
||||
|
||||
%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
|
||||
export GOPROXY=https://proxy.golang.org/cached-only
|
||||
|
@ -41,6 +53,13 @@ install -Dm0755 bin/%{name} %{buildroot}/%{_datadir}/terraform/plugins/tf.%{tfpr
|
|||
%{_datadir}/terraform/plugins/tf.%{tfprovider}.online/mylocal/%{tfprovider}/%{version}/linux_%{goarch}/%{name}
|
||||
|
||||
|
||||
%check
|
||||
export GOPROXY=https://proxy.golang.org/cached-only
|
||||
#go test ./...
|
||||
|
||||
%if %{secscan}
|
||||
clamscan -ir %{buildroot}
|
||||
%endif
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue