monado/.gitlab-ci/templates/include.ci-containers-variables.yml.jinja
Ryan Pavlik ac6e9ad480 ci: Move and rename templates for clearer separation
Avoids having templates in the same place as the files they generate.

Also rename the files that just get included
2023-11-14 20:27:59 +00:00

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 %}