| 1 |
{# |
| 2 |
# SPDX-License-Identifier: CC0-1.0 |
| 3 |
# SPDX-FileCopyrightText: 2018-2023 Collabora, Ltd. and the Monado contributors |
| 4 |
# |
| 5 |
# This file is not used directly to generate its own output: it is included by .gitlab-ci.yml.jinja |
| 6 |
#} |
| 7 |
|
| 8 |
{# Macro to compute job name to extend to use image given a package we want#} |
| 9 |
{% macro base_job_to_use_image_containing(package) %} |
| 10 |
{% for distro in distributions -%} {%- for image in distro.images if package in image.packages %} |
| 11 |
{{ base_job_to_use_image(distro, image) if loop.first }} |
| 12 |
{% endfor -%} {%- endfor %} |
| 13 |
{% endmacro -%} |
| 14 |
|
| 15 |
{# Macro to compute a part of a job name, etc. for a distro and image #} |
| 16 |
{% macro image_name(distro, image) -%} |
| 17 |
{{ distro.name }} |
| 18 |
{%- if "codename" in image %}:{{ image.codename }}{%- endif -%} |
| 19 |
{%- endmacro -%} |
| 20 |
|
| 21 |
{# Macro to compute job name to extend to use image given distro and image objects#} |
| 22 |
{% macro base_job_to_use_image(distro, image) %}.monado.image.{{ image_name(distro, image) }}{% endmacro -%} |
| 23 |
|
| 24 |
|
| 25 |
{# Macro to compute a part of a comment describing a distro and image #} |
| 26 |
{% macro image_name_for_comment(distro, image) %} |
| 27 |
{{ distro.name | capitalize }} |
| 28 |
{%- if "codename" in image %} {{ image.codename }}{%- endif -%} |
| 29 |
{%- endmacro -%} |