Self-Hosted CI Runners at Scale
Provision, autoscale, and secure self-hosted GitHub Actions runners for GPU/firmware CI using ephemeral JIT runners, runner groups, and actions-runner-controller.
Overview
Why self-hosted runners
GitHub-hosted runners give you clean, disposable Ubuntu, Windows and macOS VMs. They cannot touch your internal network, cannot mount your NFS artifact stores, have no GPUs, and reset every job. A firmware, kernel or ROCm CI pipeline needs the opposite.
Set the two side by side and the gap is plain. A self-hosted runner can reach the internal network and NFS, run AMD GPUs for hip/ROCm tests, and hold hardware signing keys or reach an HSM, though only on a restricted class of runners. It can also route work by capability through labels, for example firmware-build. GitHub-hosted runners can do none of these. The one thing hosted runners give you for free, a clean machine every job, a self-hosted runner gives you only if it is ephemeral.
Key concepts
- Registration scope (repo / org / enterprise)
- Runner groups
- Labels and runs-on matching
- Ephemeral / just-in-time (JIT) runner
- actions-runner-controller (ARC)
- Queue-depth (event-driven) autoscaling
- Hardened runner image
Interview questions
- How do you stand up a fleet of ephemeral just-in-time (JIT) runners so each build gets a clean machine?
- How do you autoscale runners on Kubernetes with actions-runner-controller (ARC) based on queue depth?
- How do you secure a self-hosted runner fleet against supply-chain and cross-job attacks?
- A runner registers and shows online in the UI but never picks up any jobs. How do you debug it?
- How do you size and route jobs across a heterogeneous fleet (GPU boxes, big-memory kernel builders, generic runners)?
- How do you isolate a privileged firmware-signing build so untrusted code can never reach the signing key?
Sign up free to read the full topic
More DevOps topics
- Sanitizers and Memory Debugging
- SAST, DAST, SCA & IAST
- Secrets Management in GitOps
- Securing Repositories and CI/CD — GitHub, GitHub Enterprise Server, GitLab and Azure DevOps
- Security and Supply Chain
- Security, Secrets and Supply Chain
- Serverless Patterns
- Service Mesh
- Service Networking Errors — DNS, Timeouts, Port Mismatch and Mesh Sidecars
- Shift-Left Security
- Sigstore & Software Supply Chain Security
- SLO / SLI / Error Budgets
Start free on Cariara · Coding problems · System design studio