mirror of
https://abf.rosa.ru/djam/terraform-provider-yandex.git
synced 2025-02-23 08:42:51 +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
|
%else
|
||||||
%global goarch 386
|
%global goarch 386
|
||||||
%endif
|
%endif
|
||||||
|
%define secscan 1
|
||||||
|
|
||||||
|
|
||||||
Name: terraform-provider-%{tfprovider}
|
Name: terraform-provider-%{tfprovider}
|
||||||
Version: 0.122.0
|
Version: 0.122.0
|
||||||
|
@ -20,11 +22,21 @@ BuildRequires: git-core
|
||||||
BuildRequires: upx
|
BuildRequires: upx
|
||||||
BuildRequires: terraform
|
BuildRequires: terraform
|
||||||
|
|
||||||
|
%if %{secscan}
|
||||||
|
BuildRequires: clamav
|
||||||
|
BuildRequires: trivy
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%if %{secscan}
|
||||||
|
clamscan -ir .
|
||||||
|
trivy fs --scanners vuln --format cosign-vuln .
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export GOPROXY=https://proxy.golang.org/cached-only
|
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}
|
%{_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