Self-Hosting · Advanced

Self-Hosted CI/CD: Gitea or Forgejo, Actions, and a Runner of Your Own

A self-hosted Git forge earns its keep twice: once as the home for your code, configs, and infrastructure-as-text, and again when its built-in CI starts doing chores — rebuilding your containers, testing your Compose files, publishing your static sites. Gitea and Forgejo both ship GitHub-Actions-compatible automation; the difference between them is governance, and the moving part everyone gets wrong is the runner.

Published Nov 20, 2026

Gitea vs Forgejo: a fork with a philosophy

Gitea (v28.4.0 at writing — the versioning jumped from 1.27 to 28.0 in 2026) is the lightweight, MIT-licensed original: a single Go binary, happy in 1–2 GB of RAM, with repositories, issues, packages, and Actions built in. Forgejo (v17.0.2; an LTS line runs alongside) began as the community fork behind Codeberg and became a hard fork in early 2024: it is governed by the non-profit Codeberg e.V. and relicensed GPLv3+ from its v9.0. Feature-wise they remain close cousins — same Actions compatibility, same migration paths from GitHub — so the choice is genuinely about which governance and license you want your infrastructure to stand on. Codeberg itself runs Forgejo, which is a meaningful production proof at public scale.

The CI half: Actions plus a runner

Both forges speak the GitHub Actions workflow syntax (with documented gaps), but nothing executes until you register a runner: a separate agent — usually a container on a beefier host — that polls the forge for jobs and runs them in Docker. Mind the 2026 rename: the old act_runner is now Gitea Runner (v6.0.0 at writing, requiring Gitea 1.26.2+), and the legacy image is deprecated and frozen — guides that still say act_runner predate the rename. Forgejo ships its own runner in the same lineage. The sane home topology: the forge on the NAS (it is light), the runner on the mini PC or workstation (builds are CPU feasts), labeled so heavy workflows land on the strong host.

What home CI is actually for

Not competing with GitHub’s free tier — feeding the homelab itself. The workflows that pay rent: rebuild and publish your own container images when a Dockerfile changes; lint and test the Compose files and configs this whole site runs on, so a broken stack fails in CI instead of at deploy time; build static sites and push the artifact to your host; and scheduled maintenance jobs (dependency-update PRs against your own repos). The runner is also a security boundary to think with: it executes arbitrary code from your repos with Docker access — effectively root on its host — so it gets its own VM or the strong-but-expendable machine, never a sidecar on the NAS that holds your backups. That is the exposure hierarchy applied inward.

The scope check

If your code lives happily on GitHub and nothing you build is private or lab-bound, a self-hosted forge is a hobby, and a pleasant one. It becomes infrastructure the day your homelab’s own configuration — the Compose files, the scripts, the site sources — deserves version control with an off-GitHub home and automation that runs on your metal. Back the forge up like a database app (repository files plus its database together, per the database backup guide), because a forge that loses its issues and history has lost the part you can’t re-clone.

Official documentation and references

Frequently asked questions

Gitea or Forgejo in 2026?

Functionally near-identical for a home lab; the split is governance and license — Gitea is MIT-licensed and company-stewarded, Forgejo is GPLv3+, non-profit-governed (Codeberg e.V.), and a hard fork since 2024, so the codebases will keep diverging. Pick the stewardship you trust; migration between them is documented while they remain close.

Why does the runner version matter?

Because of the 2026 rename: Gitea’s runner is now “Gitea Runner” (v6.x), and the old act_runner image is deprecated and receives no updates. A runner is privileged, internet-adjacent automation — running the frozen image means running unpatched privileged software. Forgejo maintains its own runner on the same model.

Can the NAS run the builds too?

It can run small ones — linting, tiny Go/Python builds — slowly. Real builds (containers, Rust, anything with a compiler and ambition) belong on the strongest machine you have, with the runner installed there and labeled accordingly. The forge itself is light enough for any NAS; only the runner is hungry.

Is my code less safe self-hosted than on GitHub?

Different risks, both manageable: GitHub gives you a company’s security team and a company’s subpoena surface; your forge gives you full control and full responsibility — patching, backups, and access control are yours. Keep the forge VPN-only or behind authenticated proxy unless you collaborate publicly, and treat runner hosts as privileged machines.

Related guides