Runners
Runners run a repository’s GitHub Actions jobs on fresh machines that BareCI launches per job and destroys afterwards. A Cloudflare control plane keeps a pool per repository and label, reconciled toward a target.
Labels
Section titled “Labels”Point a job at BareCI with its runs-on: label:
jobs: test: runs-on: bareci-4Labels are bareci-<vcpu>[-arm][-<kind>][-<image>]:
| Part | Values |
|---|---|
vcpu |
2, 4, 8, 16 |
-arm |
An Arm machine instead of x86 |
-<kind> |
deploy selects a deploy pool |
-<image> |
A named image; without it, the repository’s own image |
bareci init writes the label through a repository variable with a fallback, so a job can return to its previous runner by changing one variable.
| Tier | What waits | Job pickup |
|---|---|---|
| Hot | A running machine with an idle runner already online | About 1 s |
| Warm | A stopped machine that has booted once | About 15 s |
| Cold | Nothing: a new machine, spot first, on-demand fallback | Under a minute |
A hot machine still runs exactly one job and is then destroyed; the pool refills behind it. Hot targets follow a schedule per pool, for example a few machines in working hours and none at night, so idle cost stays small.
Images
Section titled “Images”Each repository’s image is baked nightly from its own .bareci/image.sh on a shared base: Ubuntu, the Actions runner, Docker, Bun, Node and the machine agent. The bake always installs the latest runner release. Machine types with local NVMe put the work directory and Docker’s data on it.
Isolation
Section titled “Isolation”- One fresh machine per job, destroyed after it.
- No instance role, no SSH, no inbound network.
- A single-use boot token, spent before the job starts.
Spend cap and fallback
Section titled “Spend cap and fallback”Spend is counted per machine-second, by machine type and market. At the organisation’s cap, launches stop and jobs fall back to the runner label you chose. If jobs wait more than five minutes, or cloud or GitHub calls keep failing, BareCI also switches the repository’s runner variable to its fallback label and alerts.
Repair
Section titled “Repair”| Problem | What happens |
|---|---|
| A machine never boots within 4 minutes | Terminated; the pool launches another |
| A job runs past GitHub’s 6-hour limit | The machine is terminated |
| A webhook was missed | A reconcile lists queued jobs every 2 minutes |
| A spot machine is interrupted | Its failed jobs are re-run once on on-demand capacity |
Asking why a job waits
Section titled “Asking why a job waits”job_explain (MCP) answers one job’s timeline: queued, launched, booted, picked up, finished, with each step’s duration, its machine, tier, market and cost, and if it is still waiting, why. insights answers pickup and job times, tier mix and cost per pool, with suggestions. See the Runners API.