Accepting request 879579 from home:vulyanov:branches:Virtualization

- Add placeholder vars to be replaced during build
- Fix mixed tabs and spaces

OBS-URL: https://build.opensuse.org/request/show/879579
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-handler-container?expand=0&rev=4
This commit is contained in:
James Fehlig 2021-03-17 13:42:52 +00:00 committed by Git OBS Bridge
parent 745891986d
commit 78c1a6f08a
3 changed files with 20 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Define the tags for OBS and build script builds:
#!BuildTag: opensuse/tumbleweed/virt-handler:%%PKG_VERSION%%
#!BuildTag: opensuse/tumbleweed/virt-handler:%%PKG_VERSION%%.%RELEASE%
#!BuildTag: %%TAGPREFIX%%/virt-handler:%%PKG_VERSION%%
#!BuildTag: %%TAGPREFIX%%/virt-handler:%%PKG_VERSION%%.%RELEASE%
# virt-handler container image
# KUBEVIRTFROM defined in prjconf, e.g.
@ -8,13 +8,13 @@
ARG KUBEVIRTFROM
FROM $KUBEVIRTFROM
# labelprefix=org.opensuse.kubevirt
# labelprefix=%%LABELPREFIX%%
PREFIXEDLABEL org.opencontainers.image.title="kubevirt virt-handler container"
PREFIXEDLABEL org.opencontainers.image.description="Virtualization handler for kubevirt"
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"
PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%"
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
PREFIXEDLABEL org.opensuse.reference="opensuse/tumbleweed/virt-handler:%%PKG_VERSION%%.%RELEASE%"
PREFIXEDLABEL org.opensuse.reference="%%TAGPREFIX%%/virt-handler:%%PKG_VERSION%%.%RELEASE%"
RUN zypper update -y && \
zypper install -y \

View File

@ -6,5 +6,12 @@
<param name="parse-version">patch</param>
<param name="package">kubevirt-virt-handler</param>
</service>
<service mode="buildtime" name="replace_using_env">
<param name="file">Dockerfile</param>
<param name="var">TAGPREFIX</param>
<param name="var">LABELPREFIX</param>
<param name="eval">source /usr/lib/obs/service/meta/virt-containers-meta</param>
<param name="verbose">1</param>
</service>
<service mode="buildtime" name="docker_label_helper"/>
</services>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 17 07:05:26 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Add placeholder vars to be replaced during build
- Fix mixed tabs and spaces
-------------------------------------------------------------------
Tue Nov 17 23:02:10 UTC 2020 - James Fehlig <jfehlig@suse.com>