refactor: updated cseseniordesign github runners to automatically register
This commit is contained in:
parent
8208e847c0
commit
6b8cd7d036
3 changed files with 12 additions and 22 deletions
|
|
@ -89,6 +89,15 @@ in {
|
|||
groups.github-runner = {};
|
||||
};
|
||||
|
||||
sops.secrets = let
|
||||
inherit (config.users.users) github-runner;
|
||||
in {
|
||||
"github/runner" = {
|
||||
owner = github-runner.name;
|
||||
group = github-runner.group;
|
||||
};
|
||||
};
|
||||
|
||||
${namespace}.services.storage.impermanence.folders = ["/var/lib/github-runner"];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -40,7 +40,6 @@ in {
|
|||
runners = {
|
||||
"cseseniordesign" = {
|
||||
url = "https://github.com/cseseniordesign/dqc-r-and-s";
|
||||
tokenFile = config.sops.secrets."github/runner-cseseniordesign".path;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -69,22 +68,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
sops.secrets = let
|
||||
inherit (config.users.users) github-runner;
|
||||
in
|
||||
[
|
||||
"github/runner"
|
||||
"github/runner-cseseniordesign"
|
||||
]
|
||||
|> map (secret: {
|
||||
name = secret;
|
||||
value = {
|
||||
owner = github-runner.name;
|
||||
group = github-runner.group;
|
||||
};
|
||||
})
|
||||
|> listToAttrs;
|
||||
|
||||
networking = {
|
||||
hostName = "shiori";
|
||||
hostId = "1a4ecbe3";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue