What is GitHub Actions Runner?
GitHub Actions minutes are the quiet line item that grows with every push: billed per minute for Linux 2-core past the included quota, more for bigger machines. A self-hosted runner removes the meter - and gets you exactly the CPU, RAM, and caching behavior you choose.
This template uses the de-facto env-driven runner image with PAT-based auto-registration: set a token and a repo (or org), deploy, and the runner appears in Settings > Actions. Registration state persists across redeploys; EPHEMERAL mode plus replicas gives clean-slate scale-out.
The honest constraint, documented rather than discovered: run: steps and JS/composite actions work fully; container: jobs and Docker container actions need a daemon this platform does not expose - image builds go through kaniko or buildah instead.
What you get
- PAT-based auto-registration: deploy and it appears in GitHub
- Repo or org scope; custom labels for runs-on targeting
- Ephemeral mode + replicas for clean parallel runners
- Registration survives redeploys (state volume)
- No per-minute billing - you pay for the compute the runner reserves
- kaniko/buildah path documented for image builds
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
runner | Actions runner, outbound long-poll to GitHub | no - no ingress needed |
Before you deploy
ACCESS_TOKENPAT (repo scope for repo runners, admin:org for org runners)
REPO_URL or ORG_NAMEwhere the runner registers (with RUNNER_SCOPE)
Sizing and billing
Size to your builds, not the runner (it idles under 100 MB). 2 GiB suits typical Node/Python/Go builds; compile-heavy jobs want the next plan up.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 0.98 GiB of volumes cost $0.15 per GiB a month ($0.15/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| GitHub Actions | hosted runners | Usage-based | $0.006/min Linux 2-core past included minutes (2,000-3,000/mo on Free/Team) - 30k monthly minutes ≈ $165 overage |
Self-hosted runners are free on GitHub’s side; the announced per-minute fee for them was retracted in December 2025. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
How much does this save vs hosted runners?
GitHub includes 2,000-3,000 minutes/month on Free/Team plans, then bills every extra minute for Linux 2-core. This runner has no minute meter at any volume - you pay for the compute it reserves, and you can give it more cores than the hosted 2-core default.
What workflows will NOT work on it?
Anything needing the Docker daemon: container: jobs, services: blocks (Postgres-in-CI style), and Docker container actions. The fixes are standard: native services (your project already runs real databases), kaniko/buildah for image builds, and JS-based actions which all work.
How do I run more jobs in parallel?
Set EPHEMERAL=true and raise replicas - each replica registers itself, takes one job, deregisters, repeats. Clean state per job, parallelism equal to replica count.
Is a PAT in env safe?
The token only mints runner registration tokens and lives server-side in your stack env. Use a fine-grained PAT scoped to the one repo/org, and rotate it like any credential. GitHub’s JIT-config flow exists for stricter setups; this template favors the simple, durable registration.