ci/xinlib: kill ssh-agent to work around systemd bug / OneShot 'cron'

This commit is contained in:
Aaron Bieber 2023-06-16 10:24:22 -06:00
parent 8e55cbc5a6
commit 143a347c53
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions

View File

@ -117,6 +117,7 @@ finish() {
finish_ci() {
ssh-add -d /run/secrets/ci_ed25519_key
ssh-add -d /run/secrets/ci_signing_ed25519_key
pkill ssh-agent # TODO: https://github.com/systemd/systemd/pull/28035
exit 0
}

View File

@ -41,6 +41,9 @@ let
value = {
script = mkCronScript "${job.name}_script" job.script;
inherit (job) startAt path;
serviceConfig = {
OneShot = true;
};
};
};
jobToService = job: {
@ -48,7 +51,10 @@ let
value = {
script = mkCronScript "${job.name}_script" job.script;
inherit (job) startAt path;
serviceConfig = { User = "${job.user}"; };
serviceConfig = {
User = "${job.user}";
OneShot = true;
};
};
};
buildShell = pkgs: