···11{#
22# SPDX-License-Identifier: CC0-1.0
33# SPDX-FileCopyrightText: 2018-2023 Collabora, Ltd. and the Monado contributors
44+#
55+# This file is not used directly to generate its own output: it is included by .gitlab-ci.yml.jinja
46#}
5766-{% from 'functions.jinja' import image_name, image_name_for_comment with context %}
88+{% from 'include.functions.jinja' import image_name, image_name_for_comment with context %}
79810{% for distro in distributions -%} {%- for image in distro.images %}
911···1315{% if "codename" in image or "distro_version" in image %}
1416 FDO_DISTRIBUTION_VERSION: "{{ image["distro_version"] | default(image.codename) }}"
1517{% endif %}
1616- FDO_DISTRIBUTION_TAG: "{{image["tag"]}}"
1818+ FDO_DISTRIBUTION_TAG: "{{ image.tag }}"
1719{% if "repo_suffix" in image %}
1820 FDO_REPO_SUFFIX: {{image["repo_suffix"]}}
1921{% endif %}
···11{#
22# SPDX-License-Identifier: CC0-1.0
33# SPDX-FileCopyrightText: 2018-2023 Collabora, Ltd. and the Monado contributors
44+#
55+# This file is not used directly to generate its own output: it is included by .gitlab-ci.yml.jinja
46#}
5766-{% from 'functions.jinja' import image_name, image_name_for_comment with context %}
88+{% from 'include.functions.jinja' import image_name, image_name_for_comment with context %}
79810###
911# Container prep jobs
···2729{% endif %}
2830{% endfor -%} {%- endfor %}
29313030-{% from 'functions.jinja' import base_job_to_use_image with context %}
3232+{% from 'include.functions.jinja' import base_job_to_use_image with context %}
31333234###
3335# Container usage base jobs
+9-8
.gitlab-ci/ci-scripts.mk
···11# SPDX-License-Identifier: CC0-1.0
22-# SPDX-FileCopyrightText: 2022 Collabora, Ltd. and the Monado contributors
22+# SPDX-FileCopyrightText: 2022-2023 Collabora, Ltd. and the Monado contributors
33#
44# To generate all the templated files, run this from the root of the repo:
55# make -f .gitlab-ci/ci-scripts.mk
6677-# These also all have their template named the same with a .jinja suffix.
77+# These also all have their template named the same with a .jinja suffix in the template subdir.
88FILES_IN_SUBDIR := \
99 .gitlab-ci/distributions \
1010 .gitlab-ci/reprepro.sh \
···24242525CI_FAIRY := ci-fairy generate-template --config=$(CONFIG_FILE)
26262727-# As the default thing for ci-fairy to template, this is special cased
2828-.gitlab-ci.yml: .gitlab-ci/ci.template .gitlab-ci/win_containers.yml $(CONFIG_FILE)
2727+# Because we have includes, and it goes to a different directory, this is special cased
2828+.gitlab-ci.yml: .gitlab-ci/templates/.gitlab-ci.yml.jinja $(CONFIG_FILE)
2929 $(CI_FAIRY) $< > $@
3030# Extra deps
3131-.gitlab-ci.yml: .gitlab-ci/ci-containers-variables.yml.jinja
3232-.gitlab-ci.yml: .gitlab-ci/ci-containers.yml.jinja
3333-.gitlab-ci.yml: .gitlab-ci/functions.jinja
3131+.gitlab-ci.yml: .gitlab-ci/templates/include.win_containers.yml
3232+.gitlab-ci.yml: .gitlab-ci/templates/include.ci-containers-variables.yml.jinja
3333+.gitlab-ci.yml: .gitlab-ci/templates/include.ci-containers.yml.jinja
3434+.gitlab-ci.yml: .gitlab-ci/templates/include.functions.jinja
34353536# Everything else is structured alike
3636-$(FILES_IN_SUBDIR): %: %.jinja $(CONFIG_FILE)
3737+$(FILES_IN_SUBDIR): .gitlab-ci/%: .gitlab-ci/templates/%.jinja $(CONFIG_FILE)
3738 $(CI_FAIRY) $< > $@
···6262 - when: never
636364646565-{% include 'win_containers.yml' %}
6666-{% include 'ci-containers-variables.yml.jinja' %}
6767-{% include 'ci-containers.yml.jinja' %}
6565+{% include 'include.win_containers.yml' %}
6666+{% include 'include.ci-containers-variables.yml.jinja' %}
6767+{% include 'include.ci-containers.yml.jinja' %}
68686969-{% from 'functions.jinja' import image_name, base_job_to_use_image_containing, base_job_to_use_image with context %}
6969+{% from 'include.functions.jinja' import image_name, base_job_to_use_image_containing, base_job_to_use_image with context %}
70707171# Style check job
7272format-and-spellcheck:
···11{#
22# SPDX-License-Identifier: CC0-1.0
33# SPDX-FileCopyrightText: 2018-2023 Collabora, Ltd. and the Monado contributors
44+#
55+# This file is not used directly to generate its own output: it is included by .gitlab-ci.yml.jinja
46#}
5768{# Macro to compute job name to extend to use image given a package we want#}
···11-# {# included by ci.template #}
22-# {# SPDX-License-Identifier: CC0-1.0 #}
33-# {# SPDX-FileCopyrightText: 2018-2022 Collabora, Ltd. and the Monado contributors #}
11+# {#- included by .gitlab-ci.yml.jinja #}
22+# {#- SPDX-License-Identifier: CC0-1.0 #}
33+# {#- SPDX-FileCopyrightText: 2018-2022 Collabora, Ltd. and the Monado contributors #}
4455###
66# Windows container-related jobs (prep and usage)