mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
fix: register gitea runner
This commit is contained in:
parent
76a7480a1d
commit
3cc264a857
@ -10,9 +10,9 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
labels = [
|
labels = [
|
||||||
# Provide a Debian base with NodeJS for actions
|
# Provide a Debian base with NodeJS for actions
|
||||||
"debian-latest:docker://node:18-bullseye"
|
# "debian-latest:docker://node:18-bullseye"
|
||||||
# Fake the Ubuntu name, because Node provides no Ubuntu builds
|
# Fake the Ubuntu name, because Node provides no Ubuntu builds
|
||||||
"ubuntu-latest:docker://node:18-bullseye"
|
# "ubuntu-latest:docker://node:18-bullseye"
|
||||||
# Provide native execution on the host using below packages
|
# Provide native execution on the host using below packages
|
||||||
"native:host"
|
"native:host"
|
||||||
];
|
];
|
||||||
@ -31,6 +31,23 @@
|
|||||||
tokenFile = config.secrets.giteaRunnerToken.dest;
|
tokenFile = config.secrets.giteaRunnerToken.dest;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
secrets.giteaRunnerToken = {
|
||||||
|
source = ../../../private/gitea-runner-token.age; # TOKEN=xyz
|
||||||
|
dest = "${config.secretsDirectory}/gitea-runner-token";
|
||||||
|
};
|
||||||
|
systemd.services.giteaRunnerToken-secret = {
|
||||||
|
requiredBy = [
|
||||||
|
"gitea-runner-${
|
||||||
|
config.services.gitea-actions-runner.instances.${config.networking.hostName}.name
|
||||||
|
}.service"
|
||||||
|
];
|
||||||
|
before = [
|
||||||
|
"gitea-runner-${
|
||||||
|
config.services.gitea-actions-runner.instances.${config.networking.hostName}.name
|
||||||
|
}.service"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
12
private/gitea-runner-token.age
Normal file
12
private/gitea-runner-token.age
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IE1nSGFPdyBoOVF1
|
||||||
|
NmZocHpQQnRJcWpWUHh2bU93NkdnZWNzSlFiaHdTd24rcHpsczFRCmJaSzNkNGs1
|
||||||
|
UDJCN2dYUVE3UTE1OU5RUWljQlN4dmxuUnpOMFYxQTdUaVEKLT4gc3NoLWVkMjU1
|
||||||
|
MTkgWXlTVU1RIE5HdGd6aTlKM0lFUlYzT1VhS05nZ2ZxTndVZHBNQlJxYlovdXkx
|
||||||
|
ei96d2cKdzlUYVFFaEIzaS9LZmY3MzM1RmNnR0xjOEpHK1kxM0FMTWRQSlVnczVF
|
||||||
|
dwotPiBzc2gtZWQyNTUxOSBuanZYNUEgQ1lhMGQvUy9OWkRBR3BZV1pFNmNtb2pq
|
||||||
|
Y2VEUzhRWGVWUkZJY1l4RGtWdwphdFZtM0ZLZURvYVZQYjV4bWVPdWJxa3RmWmVh
|
||||||
|
SHl0T0pQWmxnVlFPR2drCi0tLSBnd2lwS3dqUk5Jelg0b3RxbFdEcnJ6ZkkvZTVN
|
||||||
|
UllBeUUyOXBxVDBKMG5BCkGo9kj9sMVhbnXVM35lGScAb8r5LH9vf5jOdhLC/Wj2
|
||||||
|
+uA0ONIh7F2GELzf5Cw1KZJ8aHTURM2r41vZvfAQN1RwrmYOiUzlyMrvTDe78cY=
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
Loading…
Reference in New Issue
Block a user