host/istal: add runner for codeberg

This commit is contained in:
Dmitriy Pleshevskiy 2024-10-17 18:34:37 +03:00
parent 53fca9c808
commit 9e7589ee36
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
4 changed files with 22 additions and 6 deletions

Binary file not shown.

View file

@ -1,7 +1,11 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let
NODE_OPTIONS = "--max_old_space_size=4096";
in
{ {
age.secrets.forgejo-runner-docker-token.file = ./forgejo-runner-docker-token.age; age.secrets.forgejo-runner-token-istal-docker.file = ./forgejo-runner-token-istal-docker.age;
age.secrets.forgejo-runner-token-codeberg-docker.file = ./forgejo-runner-token-codeberg-docker.age;
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
@ -12,13 +16,25 @@
enable = true; enable = true;
name = "istal-docker"; name = "istal-docker";
url = "https://git.pleshevski.ru"; url = "https://git.pleshevski.ru";
labels = []; labels = [ ];
tokenFile = config.age.secrets.forgejo-runner-docker-token.path; tokenFile = config.age.secrets.forgejo-runner-token-istal-docker.path;
settings = { settings = {
runner = { runner = {
envs = { envs = { inherit NODE_OPTIONS; };
NODE_OPTIONS="--max_old_space_size=4096";
}; timeout = "1h";
};
};
};
codeberg-docker = {
enable = true;
name = "codeberg-docker";
url = "https://codeberg.org";
labels = [ ];
tokenFile = config.age.secrets.forgejo-runner-token-codeberg-docker.path;
settings = {
runner = {
envs = { inherit NODE_OPTIONS; };
timeout = "1h"; timeout = "1h";
}; };