2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
2025-01-08 11:45:27 +01:00
|
|
|
_:
|
2024-01-10 13:59:11 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
url = "https://git.dgnum.eu";
|
|
|
|
|
2024-02-02 10:51:31 +01:00
|
|
|
mkRunner =
|
|
|
|
{
|
|
|
|
labels,
|
|
|
|
name,
|
|
|
|
token,
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
enable = true;
|
2024-01-10 13:59:11 +01:00
|
|
|
|
2024-02-02 10:51:31 +01:00
|
|
|
inherit
|
|
|
|
name
|
|
|
|
labels
|
|
|
|
token
|
|
|
|
url
|
|
|
|
;
|
2024-01-10 13:59:11 +01:00
|
|
|
|
2024-02-02 10:51:31 +01:00
|
|
|
settings.container = {
|
|
|
|
network = "host";
|
|
|
|
options = "--cpus=4";
|
|
|
|
};
|
2024-01-10 13:59:11 +01:00
|
|
|
};
|
2024-02-02 10:51:31 +01:00
|
|
|
in
|
|
|
|
{
|
2024-01-10 13:59:11 +01:00
|
|
|
services.gitea-actions-runner.instances = builtins.mapAttrs (_: mkRunner) {
|
|
|
|
runner01 = {
|
|
|
|
token = "qT9nZXKgLcb3fWOj7VTj3S58raiCWwF0weuIIKlY";
|
|
|
|
name = "storage01 [debian]";
|
|
|
|
|
|
|
|
labels = [ "debian-latest:docker://node:20-bookworm" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
runner02 = {
|
|
|
|
token = "m0rUDBxxkMb6xLTmPFwIieHswJFROqPFByPlT3V9";
|
|
|
|
name = "storage01 [debian]";
|
|
|
|
|
|
|
|
labels = [ "debian-latest:docker://node:20-bookworm" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|