Accepting request 889151 from home:vulyanov

- Set default reg_path='registry.opensuse.org/kubevirt'
- Add _constraints file with disk requirements
- Drop CDI_VERSION env var since its not used during the build

OBS-URL: https://build.opensuse.org/request/show/889151
OBS-URL: https://build.opensuse.org/package/show/Virtualization/containerized-data-importer?expand=0&rev=15
This commit is contained in:
Dirk Mueller 2021-04-29 07:11:21 +00:00 committed by Git OBS Bridge
parent 19e9dd00dc
commit 2da922fc4b
3 changed files with 16 additions and 2 deletions

8
_constraints Normal file
View File

@ -0,0 +1,8 @@
<constraints>
<!-- CDI needs larger disk for builds -->
<hardware>
<disk>
<size unit="G">6</size>
</disk>
</hardware>
</constraints>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Apr 29 05:23:06 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Set default reg_path='registry.opensuse.org/kubevirt'
- Add _constraints file with disk requirements
- Drop CDI_VERSION env var since its not used during the build
-------------------------------------------------------------------
Wed Apr 21 15:31:22 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>

View File

@ -135,7 +135,7 @@ case "${distro}" in
150300:0)
reg_path='registry.suse.de/suse/containers/sle-server/15/containers/suse/sles/15.3' ;;
*)
reg_path='registry.opensuse.org/virtualization/container/kubevirt' ;;
reg_path='registry.opensuse.org/kubevirt' ;;
esac
%else
reg_path='%{registry_path}'
@ -144,7 +144,6 @@ reg_path='%{registry_path}'
export GOPATH=%{_builddir}/go
export GOFLAGS="-buildmode=pie -mod=vendor"
env \
CDI_VERSION=%{version} \
CDI_SOURCE_DATE_EPOCH="$(date -r LICENSE +%s)" \
CDI_GIT_COMMIT='v%{version}' \
CDI_GIT_VERSION='v%{version}' \