ubuntu runner
This commit is contained in:
parent
8f9028c7a5
commit
cfd7fc1d6a
3 changed files with 24 additions and 0 deletions
|
|
@ -78,6 +78,11 @@ in {
|
|||
file = ./secrets/postmark.age;
|
||||
owner = "root";
|
||||
};
|
||||
|
||||
forgejo-runner-token = {
|
||||
file = ./secrets/forgejo-runner-token.age;
|
||||
owner = "gitea-runner";
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
|
|
@ -130,6 +135,17 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
services.gitea-actions-runner.instances."ubuntu" = {
|
||||
enable = true;
|
||||
url = "http://localhost:3000";
|
||||
tokenFile = config.age.secrets.forgejo-runner-token.path;
|
||||
labels = [
|
||||
"ubuntu-latest:docker://ubuntu:22.04"
|
||||
"ubuntu-22.04:docker://ubuntu:22.04"
|
||||
"ubuntu-20.04:docker://ubuntu:20.04"
|
||||
];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /home/ironmagma/.config 0755 ${username} users"
|
||||
"d /root/.config 0755 ${username} users"
|
||||
|
|
|
|||
|
|
@ -14,4 +14,7 @@ in {
|
|||
|
||||
# POSTMARK_SERVER_TOKEN
|
||||
"./postmark.age".publicKeys = [mainframePublicKey];
|
||||
|
||||
# Forgejo runner registration token (plain text token from Forgejo admin)
|
||||
"./forgejo-runner-token.age".publicKeys = [mainframePublicKey];
|
||||
}
|
||||
|
|
|
|||
5
nixos/secrets/forgejo-runner-token.age
Normal file
5
nixos/secrets/forgejo-runner-token.age
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 NFD/vg clf6vMNmGue91peB+0Gn38wS4bNOIT8O2lbngF6sJCI
|
||||
Zy2TQnIQ68z5WaMzukLTYrWD8bYk3nf0y6JmlhqtZA4
|
||||
--- UWiqR61EQhaDVOOdi8Zo7J4b9bDwOIyKDTlpisgTGr8
|
||||
XE`qrõRjû£nÉй^ÊmöȌÄOÜ*9|ëðÆÑ5h yj1)§yxu/3zL@’×<E28099>Ÿ¶ XDB7éã¬a<C2AC>h
|
||||
Loading…
Reference in a new issue