Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Forgejo

Self-hosted CI Actions runners for forgejo. https://forgejo.org

momo-cloud includes defaults for gitea-runners. They are automatically activated once you enable an instance.

This includes:

  • Enabling the docker service
  • Adding a user gitea-runner for the runners
  • Adding bridges to the trusted firewall interfaces

Usage

  services.gitea-actions-runner.instances = {
    atlas = {
      enable = true;
      url = "https://git.${config.networking.hostName}";
      name = config.networking.hostName;
      tokenFile = config.age.secrets.forgejo-actions-runner-token.path;
      labels = [
        "self-hosted:host"
        "fast-self-hosted:host"
      ];
    };
  };

Secrets

tokenFile

Found in forgejo as “Registration Token”, prepend with TOKEN=:

TOKEN=<registration token>