forgejo runner (docker)
This commit is contained in:
parent
0aee3fb1fd
commit
f2327911d9
2 changed files with 24 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
|
./runner.nix
|
||||||
./web.nix
|
./web.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
23
runner.nix
Normal file
23
runner.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
services.forgejo.settings.actions.ENABLED = true;
|
||||||
|
|
||||||
|
virtualisation.docker = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.docker_29;
|
||||||
|
autoPrune.enable = true; # removes unused images and containers weekly
|
||||||
|
};
|
||||||
|
|
||||||
|
services.gitea-actions-runner = {
|
||||||
|
package = pkgs.forgejo-runner;
|
||||||
|
instances.main = {
|
||||||
|
enable = true;
|
||||||
|
name = "web-runner";
|
||||||
|
url = "https://forgejo.cordevelop.com";
|
||||||
|
tokenFile = "/var/lib/forgejo-runner-token";
|
||||||
|
labels = [
|
||||||
|
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest"
|
||||||
|
"docker:docker://ghcr.io/catthehacker/ubuntu:act-latest"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue