Make docker binary available for the forgejo runner
This commit is contained in:
parent
803e09039a
commit
f0aa236312
1 changed files with 24 additions and 6 deletions
|
@ -9,6 +9,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
|
host,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
@ -23,7 +24,9 @@
|
||||||
cfg = config.forgejo-runner;
|
cfg = config.forgejo-runner;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
networking.firewall.allowedTCPPorts = [ 39175 ];
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
39175 # Cache port
|
||||||
|
];
|
||||||
|
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
"forgejo_runner/token" = {
|
"forgejo_runner/token" = {
|
||||||
|
@ -31,11 +34,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# environment.persistence."/persistent" = {
|
environment.persistence."/persistent" = {
|
||||||
# directories = [
|
directories = [
|
||||||
# "/var/lib/private/gitea-runner/runner"
|
"/var/lib/private/gitea-runner"
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
|
|
||||||
sops.templates."forgejo_runner_token.env" = {
|
sops.templates."forgejo_runner_token.env" = {
|
||||||
owner = "root";
|
owner = "root";
|
||||||
|
@ -44,6 +47,10 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.forgejo-secrets = {
|
||||||
|
after = [ "cephfs.mount" ];
|
||||||
|
};
|
||||||
|
|
||||||
services.gitea-actions-runner = {
|
services.gitea-actions-runner = {
|
||||||
package = pkgs.forgejo-actions-runner;
|
package = pkgs.forgejo-actions-runner;
|
||||||
instances.default = {
|
instances.default = {
|
||||||
|
@ -57,6 +64,17 @@
|
||||||
"ubuntu-20.04:docker://node:16-bullseye"
|
"ubuntu-20.04:docker://node:16-bullseye"
|
||||||
"ubuntu-18.04:docker://node:16-buster"
|
"ubuntu-18.04:docker://node:16-buster"
|
||||||
];
|
];
|
||||||
|
settings = {
|
||||||
|
cache = {
|
||||||
|
enabled = true;
|
||||||
|
host = host.ip;
|
||||||
|
port = 39175;
|
||||||
|
};
|
||||||
|
|
||||||
|
container = {
|
||||||
|
docker_host = "automount";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue