summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-02-24 08:21:55 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-02-24 08:44:48 +1000
commit0e665a27801f8e485d6bf4c0c1c8fa8ca9cb7ae6 (patch)
treeaa90da1e33659a39aa19865ce306762da7d4c8f4 /.gitlab-ci
parentdb602d0d063367d8a576348960714fab3dd3e738 (diff)
downloadlibevdev-0e665a27801f8e485d6bf4c0c1c8fa8ca9cb7ae6.tar.gz
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>
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/gitlab-ci.tmpl25
1 files changed, 4 insertions, 21 deletions
diff --git a/.gitlab-ci/gitlab-ci.tmpl b/.gitlab-ci/gitlab-ci.tmpl
index 99d7f3d..489c21c 100644
--- a/.gitlab-ci/gitlab-ci.tmpl
+++ b/.gitlab-ci/gitlab-ci.tmpl
@@ -11,29 +11,12 @@
.templates_sha: &template_sha b7030c2cd0d6ccc5f6d4f8299bafa4daa9240d71 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
include:
- # Alpine container builder template
- - project: 'wayland/ci-templates'
- file: '/templates/alpine.yml'
- # Arch container builder template
- - project: 'wayland/ci-templates'
- ref: *template_sha
- file: '/templates/arch.yml'
- # Fedora container builder template
- - 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
+ {% for distribution in distributions|map(attribute='name')|unique()|sort() %}
+ # {{ distribution.capitalize() }} container builder template
- project: 'wayland/ci-templates'
ref: *template_sha
- file: '/templates/centos.yml'
+ file: '/templates/{{distribution}}.yml'
+ {% endfor %}
stages:
- prep # rebuild the container images if there is a change