monado/.gitlab-ci/templates/distributions.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

34 lines
1.1 KiB
Django/Jinja

{#
Copyright 2020-2022, Collabora, Ltd.
SPDX-License-Identifier: BSL-1.0
#}
{#
Template for reprepro distributions config file.
After this template gets expanded, with a paragraph for each
distribution codename supported,
the GPG fingerprint gets substituted into that at CI time using envsubst,
(not ahead of time using ci-fairy)
because the fingerprint is included in the "secrets" in CI.
Note: There is no way to indicate comments in the reprepro distributions config
file format, and whitespace is meaningful (need blank lines between paragraphs).
Please run the following after modifying this file:
ci-fairy generate-template --config .gitlab-ci/config.yml .gitlab-ci/distributions.jinja > .gitlab-ci/distributions
or better yet, use the makefile.
#}
{% for distro in distributions -%} {%- for image in distro.images if "deb_version_suffix" in image %}
Origin: monado.freedesktop.org
Description: Monado CI apt repository
Codename: {{ image.codename }}
Architectures: amd64 i386 source
Components: main
Tracking: minimal
SignWith: ${MONADO_GPG_FINGERPRINT}
{% endfor -%} {%- endfor %}