forgejo: use sops for runner token
All checks were successful
/ test (push) Successful in 2s

This commit is contained in:
notohh 2023-10-05 14:55:34 -04:00
parent c2392d759c
commit ff62d8cefb
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -3,6 +3,7 @@
config,
...
}: {
sops.secrets.forgejo-runner-token = {owner = "forgejo";};
services.forgejo = {
enable = true;
stateDir = "/var/lib/forgejo";
@ -40,7 +41,7 @@
enable = true;
name = config.networking.hostName;
url = "https://git.flake.sh";
token = "WJXKbVSyfUVpeJYiFpRlf04CyxDS0mYG7at8B9kX";
token = config.sops.secrets.forgejo-runner-token.path;
labels = [
"debian-latest:docker://node:18-bullseye"
"ubuntu-latest:docker://node:18-bullseye"