Skip to content

Update supported Fedora versions

What does this MR do?

Update list of supported Fedora versions based on official Fedora Project documentation.

Why was this MR needed?

Provide better Podman (docker/container) runner support on Fedora Linux.

What's the best way to test this MR?

See that Fedora 36 is detect correctly in RPM repository setup script.

Start container with Fedora Linux 36:

podman run --rm -it registry.fedoraproject.org/fedora:36 /bin/bash

Test Gitlab runner setup script:

https://docs.gitlab.com/runner/install/linux-repository.html#installing-gitlab-runner

curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash

After update we should get /etc/yum.repos.d/runner_gitlab-runner.repo and not this error message:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6976  100  6976    0     0  16377      0 --:--:-- --:--:-- --:--:-- 16375
Detected operating system as fedora/36.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/runner/gitlab-runner/config_file.repo?os=fedora&dist=36&source=script
curl: (22) The requested URL returned error: 404


Unable to download repo config from: https://packages.gitlab.com/install/repositories/runner/gitlab-runner/config_file.repo?os=fedora&dist=36&source=script

This usually happens if your operating system is not supported by 
packagecloud.io, or this script's OS detection failed.

You can override the OS detection by setting os= and dist= prior to running this script.
You can find a list of supported OSes and distributions on our website: https://packages.gitlab.com/docs#os_distro_version

For example, to force CentOS 6: os=el dist=6 ./script.sh

If you are running a supported OS, please email support@packagecloud.io and report this.

What are the relevant issue numbers?

#27119 (closed)

Merge request reports