fix: use proper name instead of out-of-scope n for runner names

This commit is contained in:
buffet 2024-05-07 21:46:22 +02:00
parent 22d4240e80
commit 3e09f9cb19

View file

@ -16,7 +16,7 @@ in {
instances = lib.genAttrs (builtins.genList (n: "runner${builtins.toString n}") numRunners) (name: { instances = lib.genAttrs (builtins.genList (n: "runner${builtins.toString n}") numRunners) (name: {
enable = true; enable = true;
name = "runner${builtins.toString n}"; inherit name;
url = config.services.forgejo.settings.server.ROOT_URL; url = config.services.forgejo.settings.server.ROOT_URL;
tokenFile = config.age.secrets.kitchen-runner-token.path; tokenFile = config.age.secrets.kitchen-runner-token.path;
labels = ["docker" "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest"]; labels = ["docker" "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest"];