Developer tools

Self-hosted Git and CI runners on a VPS

A self-hosted runner picks up your CI jobs and runs them on a server you choose. You pick the CPU, the memory and the disk, cache what you like between builds, and reach private services without opening them to the internet. NodeRings lets you compare live plans from independent providers and deploy one with root access.

You can also host the Git server itself. Forgejo and Gitea are light enough for a small plan, and GitLab fits on a larger one. Hourly billing suits builds that come in bursts: create a big runner for a release, then delete it.

Recommended start: 4 vCPU, 8 GB RAM for a runner · from $9.00/mo on live plans

Live marketplace offers

Plans for Git and CI

These are live offers that meet the size you pick. Prices and regions come from the providers and change when they do.

What are you running?

A light forge with a few users. Add disk as repositories, packages and LFS files grow.

Enzonix logo
Enzonix

Shared Compute - General Compute

$9.00/mo

2 vCPU · 4 GB · 80 GB

Choose location

Amsterdam, Netherlands

Virtualized logo
Virtualized

Shared Compute - General Compute

$12.49/mo

2 vCPU · 4 GB · 40 GB

Choose location

Phoenix, United States

2 providers

Managed runners for GitHub Actions are on the roadmap. Today you install the runner yourself on a Compute Instance. GitHub Actions runners on the roadmap

Why run Git and CI here

  • Hourly billing for bursts

    Create a large runner for a release or a test matrix, and delete it when the jobs finish. The hourly charge stops when you delete it.

  • Compare before you commit

    See live CPU, memory, disk and prices from independent providers in one list.

  • Root access

    Install any toolchain, cache dependencies between builds, and use the Docker setup you want.

  • Runners from code

    Create and destroy runners with Terraform or OpenTofu from your own pipeline.

  • Your code on your server

    Host repositories on a forge you run, in a region you pick.

How big a server does Git and CI need?

A forge is light. Builds are not. Size the runner for your heaviest job.

How big a server does Git and CI need?
WorkloadStart withNote
Forgejo or Gitea, personal use1 vCPU, 1 GB, 20 GBThe Forgejo Instant App floor. Fine for a quiet forge.
Forgejo or Gitea, small team1 to 2 vCPU, 2 GBMore memory helps with code search and many pushes at once.
Runner for scripts, linting and tests2 vCPU, 4 GB, 40 GBEnough for interpreted languages and small test suites.
Runner for compiled builds and Docker images4 vCPU, 8 GB, 80 GBCompilers use every core. Images and caches fill disk quickly.
GitLab with a few users4 vCPU, 8 GB, 160 GBRun its CI jobs on a separate runner server.

Starting points, not guarantees. Measure your own workload.

Forgejo, Gitea or GitLab?

All three host repositories with issues and pull requests. They differ in size and scope.

  • Forgejo: a community fork of Gitea. Light, runs in one container, has Forgejo Actions with a separate runner.
  • Gitea: light and quick to run, with Gitea Actions that read most GitHub Actions workflows.
  • GitLab: a full platform with CI, registry and planning tools. It needs much more memory than the others.
  • Gogs and OneDev: a very small forge, and a forge with CI built in.

What a CI minute costs you

Hosted CI usually bills per minute of build time. A runner on your own server bills per hour or per month, whatever runs on it.

So the sums are simple. Take the plan price from the list, divide by the hours you keep it, and compare that with the minutes your jobs use. A runner that is busy all day is cheaper on a monthly plan. A runner you need for a few hours a week is cheaper on an hourly plan you delete between runs.

Ephemeral runners with Terraform

An ephemeral runner takes one job and then removes itself, so no state leaks from one build to the next. Register it with the --ephemeral flag of config.sh.

To go further, create the whole server for a batch of jobs. Run terraform apply with a cloud-init script that installs and registers the runner, let the jobs finish, then run terraform destroy. You pay for the hours the server existed.

Order a VPS with Terraform and pay by the hour

Keep runners safe

A runner executes whatever code a workflow tells it to. Never attach a self-hosted runner to a public repository, because a pull request from a fork could run code on your server.

  • Run the runner as its own user, not as root, and do not give it the Docker socket unless you must.
  • Keep runners on a different server from your forge and your production apps.
  • The runner connects out to GitHub or your forge. It needs no open inbound port, so keep the NodeRings firewall closed.
  • Use ephemeral runners for anything that touches secrets.

Lock down signups on your forge

An open signup page on a new forge attracts spam accounts within days. The Forgejo Instant App creates your admin and disables public registration. On a forge you install yourself, turn off registration before you share the address, and invite users from the admin panel.

Forgejo on Docker with signup locked

Quickstart: a self-hosted GitHub Actions runner

About fifteen minutes. You need a private GitHub repository you administer and an SSH key.

  1. Create the server

    Choose Deploy on a plan that fits your builds, such as 4 vCPU and 8 GB RAM. Pick Ubuntu 24.04, add your SSH key and confirm. For a trial, a smaller hourly plan is enough to check the setup.

  2. Create a user and download the runner

    The runner gets its own user. Check the checksum against the release page before you extract the archive.

    Download
    ssh root@YOUR_SERVER_IP
    useradd --system --create-home --home-dir /home/actions-runner --shell /bin/bash actions-runner
    cd /home/actions-runner
    sudo -u actions-runner mkdir actions-runner
    sudo -u actions-runner curl -fsSL -O \
      https://github.com/actions/runner/releases/download/v2.338.2/actions-runner-linux-x64-2.338.2.tar.gz
    sha256sum actions-runner-linux-x64-2.338.2.tar.gz
    sudo -u actions-runner tar xzf actions-runner-linux-x64-2.338.2.tar.gz -C actions-runner
    ./actions-runner/bin/installdependencies.sh
  3. Get a registration token

    In your repository, open Settings, then Actions, then Runners, and choose New self-hosted runner. Copy the token from the page. It expires in about an hour.

  4. Register the runner

    Run config.sh as the runner user. Add --ephemeral if you want the runner to take one job and then remove itself.

    Register
    cd /home/actions-runner/actions-runner
    sudo -u actions-runner ./config.sh --unattended \
      --url https://github.com/YOUR_ORG/YOUR_REPO \
      --token YOUR_REGISTRATION_TOKEN \
      --name vps-runner-1 \
      --labels vps
  5. Run it as a service

    svc.sh installs a systemd unit that runs as the runner user and starts again after a reboot.

    Install the service
    ./svc.sh install actions-runner
    ./svc.sh start
    systemctl status 'actions.runner.*' --no-pager
  6. Send it a job

    Add a workflow that targets the runner by its labels. Push it, and the job shows on the Actions tab with your runner's name.

    .github/workflows/ci.yml
    name: ci
    on: [push]
    jobs:
      test:
        runs-on: [self-hosted, vps]
        steps: [{ uses: actions/checkout@v4 }, { run: "nproc && free -h" }]
  7. Keep it private and current

    Leave inbound ports closed in the NodeRings firewall, since the runner connects out. GitHub stops sending jobs to runners that fall far behind the latest release, so let the runner update itself or upgrade it by hand.

Good fit and not a fit

Ideal for

  • Runners for private repositories with heavy or long builds
  • Builds that need access to private services
  • A Forgejo or Gitea forge for a person or a small team
  • Short bursts of CI on hourly plans you delete afterwards

Not ideal for

  • Runners attached to public repositories
  • GPU builds or machine learning training
  • Large GitLab installs on a small plan
  • Cryptocurrency mining or other abuse disguised as CI

Acceptable use is covered in section 6 of the Terms of Service. Read the Terms of Service

Questions

How much does a self-hosted runner use when idle?

Very little. It waits for jobs over an outbound connection. Size the server for your heaviest build, not for the idle runner.

Is a self-hosted runner safe on a public repository?

No. A pull request from a fork can run code on the runner. Use self-hosted runners only for private repositories you trust.

Does the runner need an open port?

No. It connects out to GitHub or your forge and polls for jobs. Keep inbound ports closed in the NodeRings firewall.

Should I use Forgejo, Gitea or GitLab?

Forgejo and Gitea for a light forge on a small plan. GitLab if you want its built-in CI and planning tools and can give it 8 GB of memory or more.

Can I create runners on demand?

Yes. Use Terraform or OpenTofu to create a server, register an ephemeral runner with cloud-init, and destroy the server when the jobs finish.

Can I run Forgejo and its runner on the same server?

For a personal forge, yes. For a team, keep the runner on its own server so a build cannot slow down or touch the forge.

Related use cases

On the roadmap

Run your builds on your own server

Pick a plan, register a runner, and send it your first job.

Self-Hosted GitHub Actions Runner on a VPS · NodeRings