include:
# Alpine container builder template
- project: 'wayland/ci-templates'
+ ref: *template_sha
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
+ # Centos container builder template
- project: 'wayland/ci-templates'
ref: *template_sha
- file: '/templates/ubuntu.yml'
+ file: '/templates/centos.yml'
# Debian container builder template
- project: 'wayland/ci-templates'
ref: *template_sha
file: '/templates/debian.yml'
- # CentOS container builder template
+ # Fedora container builder template
- project: 'wayland/ci-templates'
ref: *template_sha
- file: '/templates/centos.yml'
+ file: '/templates/fedora.yml'
+ # Ubuntu container builder template
+ - project: 'wayland/ci-templates'
+ ref: *template_sha
+ file: '/templates/ubuntu.yml'
stages:
- prep # rebuild the container images if there is a change
.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