Running your own build runner on a VPS
27 Nov 2026 ci automation
Benefits, risks and limits of self-hosted runners for small teams.
A self-hosted runner gives you a persistent machine for builds and tests, with caches that survive between jobs.
The benefit
Predictable monthly cost and full control of tools.
The risk
A runner executes whatever the pipeline says. Do not attach one to a public repository where strangers can propose code that runs on it.
Isolate it
Use a separate server for builds, with no production secrets or access. Run jobs as an unprivileged user or in disposable containers, and rebuild the server periodically.
Size it
Builds are CPU, memory and disk heavy. Hard disks slow dependency installation, so cache wisely and measure real pipelines before relying on it.
Network
Runners connect outward to the service, so they need no inbound ports apart from SSH.
Keep it tidy
Prune images and workspaces on a schedule; full disks cause confusing failures.
Fair use
Builds are welcome. Continuously consuming every core in a way that harms others is not, and mining of any kind is prohibited.