mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-27 18:16:55 +00:00
ac6e9ad480
Avoids having templates in the same place as the files they generate. Also rename the files that just get included
23 lines
856 B
Django/Jinja
23 lines
856 B
Django/Jinja
{#
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
# SPDX-FileCopyrightText: 2018-2023 Collabora, Ltd. and the Monado contributors
|
|
#
|
|
# This file is not used directly to generate its own output: it is included by .gitlab-ci.yml.jinja
|
|
#}
|
|
|
|
{% from 'include.functions.jinja' import image_name, image_name_for_comment with context %}
|
|
|
|
{% for distro in distributions -%} {%- for image in distro.images %}
|
|
|
|
# Variables for build and usage of {{ image_name_for_comment(distro, image) }} image
|
|
.monado.variables.{{ image_name(distro, image) }}:
|
|
variables:
|
|
{% if "codename" in image or "distro_version" in image %}
|
|
FDO_DISTRIBUTION_VERSION: "{{ image["distro_version"] | default(image.codename) }}"
|
|
{% endif %}
|
|
FDO_DISTRIBUTION_TAG: "{{ image.tag }}"
|
|
{% if "repo_suffix" in image %}
|
|
FDO_REPO_SUFFIX: {{image["repo_suffix"]}}
|
|
{% endif %}
|
|
{% endfor -%} {%- endfor %}
|