forked from CCCHH/nix-infra
Configure new forgejo-actions-runner host
Configure it to host a forgejo-actions-runner capable of handling CI workloads running on Docker.
This commit is contained in:
parent
4970f59052
commit
85c059c75c
6 changed files with 94 additions and 0 deletions
|
@ -0,0 +1,30 @@
|
|||
# Sources for this configuration:
|
||||
# - https://forgejo.org/docs/latest/admin/actions/
|
||||
# - https://forgejo.org/docs/latest/user/actions/
|
||||
# - https://docs.gitea.com/next/usage/actions/act-runner
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-actions-runner;
|
||||
instances.ccchh-forgejo-global-docker = {
|
||||
enable = true;
|
||||
name = "Global Docker Forgejo Actions Runner";
|
||||
url = "https://git.hamburg.ccc.de/";
|
||||
tokenFile = "/secrets/registration-token.secret";
|
||||
labels = [ "docker:docker://node:current-bookworm" ];
|
||||
};
|
||||
};
|
||||
|
||||
deployment.keys = {
|
||||
"registration-token.secret" = {
|
||||
keyCommand = [ "pass" "noc/services/forgejo-actions-runner/registration_token" ];
|
||||
destDir = "/secrets";
|
||||
user = "gitea-runner";
|
||||
group = "gitea-runner";
|
||||
permissions = "0640";
|
||||
uploadAt = "pre-activation";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue