Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the KIWI additionalnames feature for defining tags #1423

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/bci_build/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@
"""<?xml version="1.0" encoding="utf-8"?>
<!-- SPDX-License-Identifier: {{ image.license }} -->
<!-- {{ INFOHEADER }}-->
<!-- OBS-AddTag: {% for tag in image.build_tags -%} {{ tag }} {% endfor -%}-->
<!-- OBS-Imagerepo: obsrepositories:/ -->

<image schemaversion="7.4" name="{{ image.uid }}-image" xmlns:suse_label_helper="com.suse.label_helper">
<image schemaversion="7.5" name="{{ image.uid }}-image" xmlns:suse_label_helper="com.suse.label_helper">
<description type="system">
<author>{{ image.vendor }}</author>
<contact>https://www.suse.com/</contact>
Expand All @@ -103,8 +102,8 @@
<containerconfig
name="{{ image.build_tags[0].split(':')[0] }}"
tag="{{ image.build_tags[0].split(':')[1] }}"
{%- if image.kiwi_additional_tags %}
additionaltags="{{ image.kiwi_additional_tags }}"
{%- if image.build_tags|length > 1 %}
additionalnames="{% for tag in image.build_tags[1:] %}{{ tag }}{{ "," if not loop.last }}{% endfor %}"
{%- endif %}
{%- if image.entrypoint_user %}
user="{{ image.entrypoint_user }}"
Expand Down
Loading