forked from pub-solar/infra
gitea-actions-runner: don't run as systemd DynamicUser
to enable usage of cache outside of /var/lib/private
This commit is contained in:
parent
9541e5029e
commit
fa9ce9d435
|
@ -13,9 +13,24 @@
|
||||||
# Needed for the docker runner to communicate with the act_runner cache
|
# Needed for the docker runner to communicate with the act_runner cache
|
||||||
networking.firewall.trustedInterfaces = [ "br-+" ];
|
networking.firewall.trustedInterfaces = [ "br-+" ];
|
||||||
|
|
||||||
systemd.services."gitea-runner-flora\\x2d6".serviceConfig = {
|
users.users.gitea-runner = {
|
||||||
CacheDirectory = "/data/gitea-actions-runner";
|
home = "/var/lib/gitea-runner/flora-6";
|
||||||
|
useDefaultShell = true;
|
||||||
|
group = "gitea-runner";
|
||||||
|
isSystemUser = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.groups.gitea-runner = {};
|
||||||
|
|
||||||
|
systemd.services."gitea-runner-flora\\x2d6".serviceConfig = {
|
||||||
|
DynamicUser = lib.mkForce false;
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d '/data/gitea-actions-runner' 0750 gitea-runner gitea-runner - -"
|
||||||
|
"d '/var/lib/gitea-runner' 0750 gitea-runner gitea-runner - -"
|
||||||
|
];
|
||||||
|
|
||||||
# forgejo actions runner
|
# forgejo actions runner
|
||||||
# https://forgejo.org/docs/latest/admin/actions/
|
# https://forgejo.org/docs/latest/admin/actions/
|
||||||
# https://docs.gitea.com/usage/actions/quickstart
|
# https://docs.gitea.com/usage/actions/quickstart
|
||||||
|
|
Loading…
Reference in a new issue