mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-05-05 08:48:00 +02:00
gitlab CI: generate the template list from the config data
Only change in the actual gitlab CI file is that the sorting is now alphabetical. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
db602d0d06
commit
0e665a2780
2 changed files with 13 additions and 29 deletions
|
|
@ -11,11 +11,20 @@
|
||||||
include:
|
include:
|
||||||
# Alpine container builder template
|
# Alpine container builder template
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'wayland/ci-templates'
|
||||||
|
ref: *template_sha
|
||||||
file: '/templates/alpine.yml'
|
file: '/templates/alpine.yml'
|
||||||
# Arch container builder template
|
# Arch container builder template
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'wayland/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/arch.yml'
|
file: '/templates/arch.yml'
|
||||||
|
# Centos container builder template
|
||||||
|
- project: 'wayland/ci-templates'
|
||||||
|
ref: *template_sha
|
||||||
|
file: '/templates/centos.yml'
|
||||||
|
# Debian container builder template
|
||||||
|
- project: 'wayland/ci-templates'
|
||||||
|
ref: *template_sha
|
||||||
|
file: '/templates/debian.yml'
|
||||||
# Fedora container builder template
|
# Fedora container builder template
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'wayland/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
|
|
@ -24,14 +33,6 @@ include:
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'wayland/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/ubuntu.yml'
|
file: '/templates/ubuntu.yml'
|
||||||
# Debian container builder template
|
|
||||||
- project: 'wayland/ci-templates'
|
|
||||||
ref: *template_sha
|
|
||||||
file: '/templates/debian.yml'
|
|
||||||
# CentOS container builder template
|
|
||||||
- project: 'wayland/ci-templates'
|
|
||||||
ref: *template_sha
|
|
||||||
file: '/templates/centos.yml'
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- prep # rebuild the container images if there is a change
|
- prep # rebuild the container images if there is a change
|
||||||
|
|
|
||||||
|
|
@ -11,29 +11,12 @@
|
||||||
.templates_sha: &template_sha b7030c2cd0d6ccc5f6d4f8299bafa4daa9240d71 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
.templates_sha: &template_sha b7030c2cd0d6ccc5f6d4f8299bafa4daa9240d71 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
||||||
|
|
||||||
include:
|
include:
|
||||||
# Alpine container builder template
|
{% for distribution in distributions|map(attribute='name')|unique()|sort() %}
|
||||||
- project: 'wayland/ci-templates'
|
# {{ distribution.capitalize() }} container builder template
|
||||||
file: '/templates/alpine.yml'
|
|
||||||
# Arch container builder template
|
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'wayland/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/arch.yml'
|
file: '/templates/{{distribution}}.yml'
|
||||||
# Fedora container builder template
|
{% endfor %}
|
||||||
- project: 'wayland/ci-templates'
|
|
||||||
ref: *template_sha
|
|
||||||
file: '/templates/fedora.yml'
|
|
||||||
# Ubuntu container builder template
|
|
||||||
- project: 'wayland/ci-templates'
|
|
||||||
ref: *template_sha
|
|
||||||
file: '/templates/ubuntu.yml'
|
|
||||||
# Debian container builder template
|
|
||||||
- project: 'wayland/ci-templates'
|
|
||||||
ref: *template_sha
|
|
||||||
file: '/templates/debian.yml'
|
|
||||||
# CentOS container builder template
|
|
||||||
- project: 'wayland/ci-templates'
|
|
||||||
ref: *template_sha
|
|
||||||
file: '/templates/centos.yml'
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- prep # rebuild the container images if there is a change
|
- prep # rebuild the container images if there is a change
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue