Add Forgejo Actions Runner with sops secrets
This commit is contained in:
parent
b6abc4a1cf
commit
837e71b69d
2 changed files with 51 additions and 0 deletions
|
|
@ -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 ===
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue