How to Set Up a Self-Hosted Forgejo Actions CI/CD Runner with Docker-in-Docker

Forgejo Actions enables automated CI/CD pipelines directly within a self-hosted Forgejo Git server, triggering tests and deployments on every code push. The setup relies on a self-operated runner paired with a Docker-in-Docker sidecar, which isolates each CI job in its own disposable container. Once configured, the runner registers globally with the Forgejo instance and executes workflows defined in the .forgejo/workflows/ directory. Forgejo Actions uses the same syntax as GitHub Actions, making existing workflow knowledge and many marketplace actions directly reusable. The guide was tested on Forgejo 16.0.3 and Runner v13.1.0 running on Debian 13 with Docker 29.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in