RousselTMLEARNING

DevOps

GitHub Actions runners: hosted, self-hosted and ARC

Choosing where workflows run: hosted runners and images, larger runners, self-hosted runners (installation, labels, groups, ephemeral mode), Actions Runner Controller on Kubernetes and security.

1. Hosted runners #

A fresh machine per job.

Overview #

Runner types

runs-on: ubuntu-latest (or windows-latest, macos-latest) gives a fresh virtual machine, destroyed after the job, with many preinstalled tools. Pin a version (ubuntu-24.04) to avoid surprises when latest changes.

2. Self-hosted runners #

Your machines, your network.

Installation #

mkdir -p ~/actions-runner && cd ~/actions-runner
curl -sLO https://github.com/actions/runner/releases/download/v2.338.2/actions-runner-linux-x64-2.338.2.tar.gz
tar xzf actions-runner-linux-x64-2.338.2.tar.gz
./config.sh --url https://github.com/<organization>/<repo> --token <token> --labels local,docker --unattended
sudo ./svc.sh install && sudo ./svc.sh start
  • The token comes from Settings › Actions › Runners › New self-hosted runner; it expires after one hour.
  • Labels (runs-on: [self-hosted, linux, docker]) and runner groups control which repositories and workflows can use them.
  • The --ephemeral option makes the runner handle a single job, then unregister: nothing carries over from one job to the next.
  • Actions Runner Controller (ARC) creates ephemeral on-demand runners on Kubernetes, from autoscaling runner scale sets.
Watch out : Never use a self-hosted runner on a public repository: any pull request from a fork could run code on your machine.

Commands to know #

Commands to know
  • ./config.sh --url … --token … --labels local : register a runner
  • ./run.sh : run the runner in the foreground
  • sudo ./svc.sh status : service status
  • ./config.sh remove --token … : unregister the runner

Sources #

Checked in November 2026: CI/CD platforms change every month, check versions and plans in the vendor's documentation.

Related articles

GitHub Actions: concepts and how it works

Discover GitHub Actions: events, workflows, jobs, steps and actions, the Marketplace, hosted runners, minute …

Writing GitHub Actions workflows

Mastering workflow syntax: triggers and filters, jobs and needs, matrices, if conditions, contexts and expres…

Delivering with GitHub Actions: GHCR, environments, OIDC and attestations

Building and deploying with GitHub Actions: publishing an image to GitHub Container Registry with GITHUB_TOKE…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!