mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-10-03 23:44:51 +02:00
added runner config
This commit is contained in:
parent
474bf2b8d4
commit
fda764517a
1 changed files with 22 additions and 0 deletions
22
hosts/forgejo-runner/configuration.nix
Normal file
22
hosts/forgejo-runner/configuration.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ pkgs, config }:
|
||||||
|
{
|
||||||
|
services.gitea-actions-runner = {
|
||||||
|
package = pkgs.forgejo-actions-runner;
|
||||||
|
instances.default = {
|
||||||
|
enable = true;
|
||||||
|
name = "monolith";
|
||||||
|
url = "https://git.rougebordeaux.xyz";
|
||||||
|
# Obtaining the path to the runner token file may differ
|
||||||
|
# tokenFile should be in format TOKEN=<secret>, since it's EnvironmentFile for systemd
|
||||||
|
tokenFile = config.age.secrets.forgejo-runner-token.path;
|
||||||
|
labels = [
|
||||||
|
"ubuntu-latest:docker://node:22-bullseye"
|
||||||
|
"ubuntu-22.04:docker://node:22-bullseye"
|
||||||
|
"ubuntu-20.04:docker://node:22-bullseye"
|
||||||
|
"ubuntu-18.04:docker://node:16-buster"
|
||||||
|
## optionally provide native execution on the host:
|
||||||
|
# "native:host"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue