mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-05-09 03:38:02 +02:00
gitlab CI: prettify the include of templates
Identical to libinput commit c8c825289f1b7575ee10b849c04f5caa60483a7e by Benjamin Tissoires. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
7820dc8b08
commit
09fd1f4e66
2 changed files with 15 additions and 21 deletions
|
|
@ -7,26 +7,19 @@
|
||||||
.templates_sha: &template_sha 0c312d9c7255f46e741d43bcd1930f09cd12efe7 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
.templates_sha: &template_sha 0c312d9c7255f46e741d43bcd1930f09cd12efe7 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
||||||
|
|
||||||
include:
|
include:
|
||||||
# Alpine container builder template
|
|
||||||
- project: 'freedesktop/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/alpine.yml'
|
file:
|
||||||
# Arch container builder template
|
# Alpine container builder template
|
||||||
- project: 'freedesktop/ci-templates'
|
- '/templates/alpine.yml'
|
||||||
ref: *template_sha
|
# Arch container builder template
|
||||||
file: '/templates/arch.yml'
|
- '/templates/arch.yml'
|
||||||
# Debian container builder template
|
# Debian container builder template
|
||||||
- project: 'freedesktop/ci-templates'
|
- '/templates/debian.yml'
|
||||||
ref: *template_sha
|
# Fedora container builder template
|
||||||
file: '/templates/debian.yml'
|
- '/templates/fedora.yml'
|
||||||
# Fedora container builder template
|
# Ubuntu container builder template
|
||||||
- project: 'freedesktop/ci-templates'
|
- '/templates/ubuntu.yml'
|
||||||
ref: *template_sha
|
|
||||||
file: '/templates/fedora.yml'
|
|
||||||
# Ubuntu container builder template
|
|
||||||
- project: 'freedesktop/ci-templates'
|
|
||||||
ref: *template_sha
|
|
||||||
file: '/templates/ubuntu.yml'
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- prep # rebuild the container images if there is a change
|
- prep # rebuild the container images if there is a change
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,12 @@
|
||||||
.templates_sha: &template_sha 0c312d9c7255f46e741d43bcd1930f09cd12efe7 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
.templates_sha: &template_sha 0c312d9c7255f46e741d43bcd1930f09cd12efe7 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
||||||
|
|
||||||
include:
|
include:
|
||||||
{% for distribution in distributions|map(attribute='name')|unique()|sort() %}
|
|
||||||
# {{ distribution.capitalize() }} container builder template
|
|
||||||
- project: 'freedesktop/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/{{distribution}}.yml'
|
file:
|
||||||
|
{% for distribution in distributions|map(attribute='name')|unique()|sort() %}
|
||||||
|
# {{ distribution.capitalize() }} container builder template
|
||||||
|
- '/templates/{{distribution}}.yml'
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue