delay gitea runner until gitea is running

This commit is contained in:
Noah Masur 2023-07-29 19:49:47 +00:00
parent dfd52e2cd5
commit 939d17ada1

View File

@ -31,6 +31,11 @@
tokenFile = config.secrets.giteaRunnerToken.dest;
};
# Make sure the runner doesn't start until after Gitea
systemd.services."gitea-runner-${config.networking.hostName}".after =
[ "gitea.service" ];
# API key needed to connect to Gitea
secrets.giteaRunnerToken = {
source = ../../../private/gitea-runner-token.age; # TOKEN=xyz
dest = "${config.secretsDirectory}/gitea-runner-token";