Infini-DL360/forgejo: enable actions runner
This commit is contained in:
parent
ec29c76a9e
commit
0b7a085f3c
1 changed files with 29 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, ... }:
|
{ config, pkgs, common, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.services.forgejo;
|
cfg = config.services.forgejo;
|
||||||
domain = config.common.subdomain "git";
|
domain = config.common.subdomain "git";
|
||||||
|
@ -58,6 +58,34 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.gitea-actions-runner.package = pkgs.forgejo-runner;
|
||||||
|
services.gitea-actions-runner.instances = {
|
||||||
|
local_priviledged = {
|
||||||
|
enable = true;
|
||||||
|
name = "Local Priviledged";
|
||||||
|
url = "https://${domain}";
|
||||||
|
token = common.forgejo.actions.global_token;
|
||||||
|
labels = [
|
||||||
|
"local:host"
|
||||||
|
];
|
||||||
|
hostPackages = with pkgs; [
|
||||||
|
bash
|
||||||
|
coreutils
|
||||||
|
curl
|
||||||
|
gawk
|
||||||
|
gitMinimal
|
||||||
|
gnused
|
||||||
|
nodejs
|
||||||
|
wget
|
||||||
|
];
|
||||||
|
};
|
||||||
|
local = {
|
||||||
|
enable = false;
|
||||||
|
token = common.forgejo.actions.global_token;
|
||||||
|
labels = [ ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts.${domain} = config.common.nginx.ssl // {
|
services.nginx.virtualHosts.${domain} = config.common.nginx.ssl // {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${cfg.settings.server.DOMAIN}:${toString cfg.settings.server.HTTP_PORT}";
|
proxyPass = "http://${cfg.settings.server.DOMAIN}:${toString cfg.settings.server.HTTP_PORT}";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue