gitlab CI: compress the file inclusion a bit

Just make it a bunch of files from a single project, rather than one
project each per file.
This commit is contained in:
Peter Hutterer 2023-01-06 09:22:50 +10:00
parent 42dbcf59c9
commit c3b250ba2e
2 changed files with 6 additions and 6 deletions

View file

@ -9,10 +9,10 @@
.templates_sha: &template_sha ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
include:
# Fedora container builder template
- project: 'freedesktop/ci-templates'
ref: *template_sha
file: '/templates/fedora.yml'
file:
- '/templates/fedora.yml'
stages:
- prep # prep work like rebuilding the container images if there is a change

View file

@ -11,12 +11,12 @@
.templates_sha: &template_sha ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
include:
{% for distro in distributions|sort(attribute="name") %}
{% if not distro.does_not_have_ci_templates %}
# {{ distro.name.capitalize() }} container builder template
- project: 'freedesktop/ci-templates'
ref: *template_sha
file: '/templates/{{distro.name}}.yml'
file:
{% for distro in distributions|sort(attribute="name") %}
{% if not distro.does_not_have_ci_templates %}
- '/templates/{{distro.name}}.yml'
{% endif %}
{% endfor %}