Orkestia
Blog
Runners

App GitHub runners (add-on)

The github-runner App Host add-on — one managed GitHub Actions runner pool per app, either shared (each job in its own isolated machine, Docker included) or dedicated (the pool's own Azure VMs), with labels, status and usage

The GitHub runners add-on gives an App Host app its own pool of GitHub Actions runners that Orkestia operates. You need no cloud account and no connection, and there is no cluster, image or network to set up.

A pool has one of two placements:

PlacementWhat a job runs onPick it when
shared (the default for a new pool)Its own isolated machine, created for that one job and deleted after it. Docker works in every jobAlmost always: tests, lint, builds, image builds, service containers
dedicatedThe pool's own Azure VMs, kept for this pool and reused between jobsA job needs a machine that outlives it, or a size the shared sizes do not cover
Add-on namegithub-runner (family ci_runners in apphost.site.addons)
Verbsapphost.addon.github-runner.apply, .status, .remove
Runner groupOne per app, purpose=github_actions, integration=github, organization scope
Who can turn it on or offOrganization owners and admins. Members can read the status
Works onAny app, including a static site with no process

Turn it on

In Cockpit: open the app, go to the Add-ons tab, and choose GitHub runners → Turn on…. Pick the GitHub installation, the placement and the size, then confirm.

With an assistant or the API:

apphost.addon.github-runner.apply
  site_uuid                 the app's site (required)
  github_installation_uuid  your organization's GitHub App installation, or its GitHub connection (required)
  placement                 shared (default for a new pool) | dedicated
  max_concurrent            jobs (shared) or machines (dedicated) at once, 1 to 16 (default 2)
  runner_labels             extra labels, on top of the pool's own

  shared only
  slot_size                 2c8g (default) | 4c16g | 8c32g
  image                     {ref}: the image each job runs in; leave it out for the default image
  egress                    {egress_ip_uuid, destinations, tcp}: send chosen traffic through a static egress IP
  warm_pool                 {enabled, min_warm_idle, idle_ttl_minutes}

  dedicated only
  run_mode                  standard (default) | docker_build
  vm_size                   D2as_v7 (default) | D4as_v7 | D8as_v7
  warm_pool                 {enabled, min_warm_idle, idle_ttl_minutes, max_jobs, max_age_hours}

max_count is the older name of max_concurrent and is still accepted. Calling apply again changes the pool in place, and a request without placement keeps the pool's placement. An input that belongs to the other placement is refused with its name, so a typo never switches a pool.

Use it from a workflow

The pool registers on your GitHub organization, in its Default runner group, so every repository of that installation can use it. A job picks the pool by label:

jobs:
  build:
    runs-on: [self-hosted, orkestia-<app-slug>]
LabelWhen
self-hostedAlways
orkestia-<app-slug>Always. This is the label that picks the pool
linux, x64Shared pools
dockerDedicated pools in docker_build mode
Your runner_labelsWhen you add them. docker is refused on a standard dedicated pool

.status returns the exact runs-on line to copy.

Shared runners

Each queued job gets its own machine: a fresh, isolated virtual machine created for that one job and deleted when it ends. Nothing a job writes, installs or starts is seen by any other job, yours or anyone else's.

Sizes

slot_sizeAdd-on sizevCPUMemoryDisk
2c8g (default)small28 GiB40 GiB
4c16gmedium416 GiB80 GiB
8c32glarge832 GiB150 GiB

A job's vCPUs and memory are reserved for it and never overcommitted. The machines run in Azure Central US.

What a job gets

DockerIn every job: docker build, docker run, services:, container: jobs and compose
UserThe image's own user, or root when the image names none. The default image runs as runner, with passwordless sudo and Docker
NetworkOutbound internet. No access to private networks, to other jobs, or to the machine that hosts the job
Cloud identityNone. A job has no Azure (or other cloud) identity or metadata service. Sign in to your cloud from the workflow, for example with GitHub OIDC
Time limit6 hours per job
Runner softwareThe GitHub Actions runner, kept current by Orkestia. It does not depend on your image

Image

Each job runs in a container image. Leave image out and jobs use Orkestia's default image: Ubuntu 24.04 with git, git-lfs, build-essential, Python 3, jq, zip tools and the Docker CLI with buildx and compose, ready for actions/checkout, actions/setup-* and the common marketplace actions.

To use your own, send image: {ref: "<registry>/<path>:<tag>"} (a digest works too). The image is checked before the pool is saved, and the apply fails with image_not_supported and the reason when a job could not run in it.

ImageAllowed
A public image on any registry (Docker Hub, GHCR, Quay, …)Yes
A private image on your Orkestia registry (registry.orkestia.dev/<your namespace>/<image>:<tag>)Yes. Each job pulls it with a short-lived, pull-only login Orkestia signs for that job. You configure nothing
A private image on any other registryNo: a registry login cannot be given (image_login_not_supported). Push the image to your Orkestia registry instead

The image needs a linux/amd64 variant. Alpine (musl) and distroless images work, because the runner brings what it needs. Send image: {} (or "default") to go back to the default image.

Warm machines and queueing

By default nothing is kept waiting: a job's machine is created when the job is queued. It is usually ready in under a minute, and longer when Orkestia has to add capacity first. To have machines ready for a burst, set warm_pool:

KeyMeaning
enabledAllow warm machines (default on, with none kept idle)
min_warm_idleMachines kept ready with no job, up to max_concurrent. 0 (the default) keeps none
idle_ttl_minutesDelete a warm machine above the floor after this long (default 2)

A warm machine still takes one job and is then deleted. It is reserved for you while it waits, so it counts as usage.

When the pool is at max_concurrent, or your organization is at its shared-capacity limit, new jobs wait in GitHub's queue and start as soon as a running one finishes.

Static egress IP

To reach a destination that accepts only known addresses, send chosen traffic through one of your organization's static egress IPs:

egress: {
  egress_ip_uuid: "<one of yours, from apphost.egress-ip.list>",
  destinations:   [{host: "api.partner.example", port: 443}]
}

Only the listed destinations go through the IP; everything else leaves the usual way. An egress IP a pool uses cannot be released until the pool stops using it.

Dedicated runners

The pool's own Azure VMs that Orkestia operates, kept for this pool and reused between jobs.

Modes

run_modeWhat a job getsUse it for
standard (default)An unprivileged runner container on the machine, with no Docker socket and no host mount. Each job gets a fresh container, and its work volume is deleted afterwardsTests, lint, builds that need no Docker
docker_buildThe machine's own Docker daemon: docker build, services:, container: jobs and composeImage builds and jobs that need service containers

In docker_build mode a job is root on the machine, so a reused machine is fully reset between jobs and serves only this app's pool.

Sizes and reuse

vm_sizeAdd-on sizevCPUMemory
D2as_v7small28 GiB
D4as_v7medium416 GiB
D8as_v7large832 GiB

The machines run in Azure Central US. Reuse is on by default, with no machine kept idle: a machine that finishes a job takes the next one, and after 15 idle minutes it is deleted. Tune it with warm_pool:

KeyMeaning
enabledReuse machines between jobs. Off means a fresh machine per job
min_warm_idleMachines kept ready with nothing to do. 0 means scale to zero
idle_ttl_minutesDelete an idle machine above the floor after this long
max_jobsReplace a machine after this many jobs
max_age_hoursReplace a machine after this age

The pool follows the same controller as every other Azure VM pool. See Warm pools and scaling.

Switch placement

Send apply with the other placement and that placement's inputs. Running jobs finish where they are: moving to shared drains the dedicated machines, and moving to dedicated stops the idle shared ones. The runs-on label stays the same, so workflows need no change.

Status

apphost.addon.github-runner.status (or the add-on card in Cockpit) shows the placement, size, image, maximum at once, warm settings, labels and runs-on line, the machines by state, queued jobs, the last 10 jobs, and this month's usage. If the runner side cannot be read at that moment, the status still returns the add-on, with runners: null and an unavailable_reason.

Usage and cost

Every row carries the app it belongs to, and the lines appear in the Cost Center. The add-on does not keep the app's own process awake, and it is never also counted as app process time.

PlacementWhat is recorded
sharedEach job's machine, from start to delete: reserved vCPU-hours, memory GiB-hours and disk GiB-hours for its size, and its egress. Warm machines count while they wait
dedicatedEach machine from creation to deletion: CPU hours, memory GiB-hours, OS disk, public IP and egress

These lines are informational today. They show what the pool would cost, and you get notice before they are billed. A pool with nothing running costs nothing.

Turn it off

GitHub runners → Turn off… in Cockpit, or apphost.addon.github-runner.remove. Run it with dry_run: true first to see what would be deleted. Remove drains the pool, deregisters each runner on GitHub, deletes every machine, and then deletes the runner group. It is safe to repeat.

What you can and cannot change

The add-on owns the pool. runner.group-update refuses the keys that tie the pool to the app (hosted_site_uuid, identity_app_uuid, run_mode), and the pool's placement, network, image and identity are Orkestia's and do not appear in data.runner.get-group. Change the pool through the add-on, not through the Runners app.

See also