fix: Ensure builder still work if gh token doesn't exist yet

This commit is contained in:
Hunter Halloran
2025-12-17 10:59:13 -05:00
parent b462bbebe0
commit 25df9bbabe

View File

@@ -21,4 +21,10 @@ mkIf builderCfg.githubRunner.enable {
workDir = builderCfg.githubRunner.workDir;
replace = true;
};
# Add systemd condition to only start the service if token file exists
# This allows graceful deployment before the token is manually installed
systemd.services."github-runner-${builderCfg.githubRunner.name}".unitConfig = {
ConditionPathExists = builderCfg.githubRunner.tokenFile;
};
}