diff options
author | Thomas Haller <thaller@redhat.com> | 2023-04-13 08:34:16 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-04-13 09:10:59 +0200 |
commit | afe098a9285b8304d9eaa126803bb419baa3e3eb (patch) | |
tree | 42f9fadb2633f34be3e7c58c76c594b51986a514 /.gitlab-ci/config.yml | |
parent | 8e37037e8830a40c97d6bb8992b3c4b9eb3fcc09 (diff) | |
download | NetworkManager-afe098a9285b8304d9eaa126803bb419baa3e3eb.tar.gz |
gitlab-ci: extract base_type for distros to reduce redundant information
The distro.name is not just a pretty name, its the name under which we fetch
the container. It is thus a well-known name, that we can rely on.
The "base_type" only depends on the distro name, and it makes no sense
to ever choose a different name. Tracking it in the "distributions"
array is thus redundant.
Move the mapping of distro.name to the base type to a separate place.
Diffstat (limited to '.gitlab-ci/config.yml')
-rw-r--r-- | .gitlab-ci/config.yml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/.gitlab-ci/config.yml b/.gitlab-ci/config.yml index 91c7d59c1c..8aafe0c48b 100644 --- a/.gitlab-ci/config.yml +++ b/.gitlab-ci/config.yml @@ -7,22 +7,28 @@ # https://gitlab.freedesktop.org/freedesktop/ci-templates # +# Some distros are fairly similar, and we reuse similar scripts. +# The base type maps the distro name to their base. +base_types: + fedora: fedora + centos: fedora + debian: debian + ubuntu: debian + alpine: alpine + # The list of all distributions we want to create job for. distributions: - name: fedora - base_type: fedora # The first tier:1 in the list is used to build the pages and check-{tree,patch} tier: 1 versions: - '37' - name: fedora - base_type: fedora tier: 2 versions: - '36' - '38' - name: fedora - base_type: fedora tier: 3 versions: - '30' @@ -32,7 +38,6 @@ distributions: - '34' - '35' - name: ubuntu - base_type: debian tier: 2 versions: - '18.04' @@ -41,20 +46,17 @@ distributions: - 'devel' - 'rolling' - name: debian - base_type: debian tier: 2 versions: - '10' - '11' - 'sid' - name: debian - base_type: debian tier: 3 versions: - '9' - 'testing' - name: centos - base_type: fedora tier: 2 versions: - '7.5.1804' @@ -62,7 +64,6 @@ distributions: - '8.1.1911' - '8.3.2011' - name: centos - base_type: fedora tier: 3 versions: - '7.6.1810' @@ -70,7 +71,6 @@ distributions: - '7.8.2003' - '8.2.2004' - name: alpine - base_type: alpine tier: 2 versions: - 'latest' |