GitHub Actions RHEL Runner Images Are Generally Available
GitHub made RHEL 9 and 10 runner images generally available for Actions on November 19.
Why this is more than a convenience
GitHub’s hosted runners have been Ubuntu, Windows and macOS. If your production estate is RHEL, your CI ran on a different distribution from your deployment target, and you worked around it one of two ways:
- Run the build in a RHEL container on an Ubuntu runner, which works and adds a layer
- Self-host runners on your own RHEL machines, which works and means operating runner infrastructure
Neither is difficult. Both are friction, and the container approach has a specific weakness: the container’s userspace is RHEL while the kernel is the runner host’s. For most builds that is irrelevant. For anything touching kernel interfaces, building kernel modules, or testing against a specific kernel version, it is not.
# the shape of the workaround
# .github/workflows/build.yml
jobs:
build:
runs-on: ubuntu-latest
container: registry.access.redhat.com/ubi9/ubi:latest
steps:
- run: cat /etc/redhat-release # RHEL 9
- run: uname -r # the Ubuntu host's kernel
That last line is the gap. Our container basics guide covers why the kernel is shared, and our kernel modules guide covers what depends on the version.
Who actually needs it
Being honest about the population: most projects do not. A Python or Go build produces the same artifact on Ubuntu as on RHEL, and matching the distribution is cargo cult.
It matters specifically for:
- Building RPMs against the real target, per our package building guide
- Kernel modules and DKMS, where the kernel version is the point
- Compliance requirements that specify the build environment, which is a documentation problem rather than a technical one and is no less real for that
- Software certified against RHEL by a vendor who will ask where it was built
- Anything depending on glibc version behaviour, since RHEL 9’s glibc differs from current Ubuntu’s, which our static versus dynamic linking guide covers
That third case is the one driving adoption. “Built on RHEL” is sometimes an audit answer rather than an engineering requirement.
Using it
jobs:
build:
runs-on: rhel-9
steps:
- uses: actions/checkout@v4
- run: sudo dnf install -y rpm-build rpmdevtools
- run: rpmbuild -ba mypackage.spec
Check GitHub’s own documentation for the exact label names and for whether the images are on free or paid tiers, since hosted runner availability has historically varied by plan.
Worth noting it is RHEL
GitHub shipped RHEL images rather than Rocky or AlmaLinux ones.
For ordinary CI the distinction does not matter, since the rebuilds are ABI compatible and would build the same artifacts. For the compliance case above, it is the entire point: an auditor asking whether the build ran on Red Hat Enterprise Linux wants the answer to be yes, not “on something binary compatible with it”.
Which is a reminder that the enterprise rebuild question is frequently about contracts and attestations rather than about code.