2024-09-04 12:00:59 +02:00
|
|
|
{ config, pkgs, ... }:
|
2024-04-11 15:31:31 +02:00
|
|
|
{
|
2024-09-04 12:00:59 +02:00
|
|
|
sops.secrets."forgejo/runner-token" = { };
|
2024-04-11 15:31:31 +02:00
|
|
|
services.gitea-actions-runner = {
|
|
|
|
package = pkgs.forgejo-actions-runner;
|
|
|
|
instances."quitte" = {
|
|
|
|
enable = true;
|
|
|
|
labels = [
|
|
|
|
# provide a debian base with nodejs for actions
|
|
|
|
"debian-latest:docker://node:18-bullseye"
|
|
|
|
# fake the ubuntu name, because node provides no ubuntu builds
|
|
|
|
"ubuntu-latest:docker://node:18-bullseye"
|
|
|
|
# provide native execution on the host
|
2024-06-03 12:17:34 +02:00
|
|
|
# "native:host"
|
2024-04-11 15:31:31 +02:00
|
|
|
];
|
2024-09-04 12:00:59 +02:00
|
|
|
tokenFile = config.sops.secrets."forgejo/runner-token".path;
|
|
|
|
url = "https://git.ifsr.de";
|
|
|
|
name = "quitte";
|
2024-10-06 20:04:32 +02:00
|
|
|
settings = {
|
|
|
|
container = {
|
|
|
|
# use podman's default network, otherwise dns was not working for some reason
|
|
|
|
network = "podman";
|
|
|
|
# don't mount the docker socket into the build containers,
|
|
|
|
# this would basically mean root on the host...
|
|
|
|
docker_host = "-";
|
|
|
|
};
|
|
|
|
};
|
2024-04-11 15:31:31 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|