Add Forgejo Actions Runner with sops secrets

This commit is contained in:
ashisgreat22 2026-03-19 14:05:51 +01:00
parent b6abc4a1cf
commit 837e71b69d
2 changed files with 51 additions and 0 deletions

View file

@ -146,6 +146,18 @@
enable = true;
domain = "git.ashisgreat.xyz";
disableRegistration = true; # Admin only
runner = {
enable = true;
tokenFile = config.sops.templates."forgejo-runner.env".path;
};
};
# Forgejo runner secrets
sops.secrets.forgejo_runner_token = { };
sops.templates."forgejo-runner.env" = {
content = ''
TOKEN=${config.sops.placeholder.forgejo_runner_token}
'';
};
# === CrowdSec ===