ci/xinlib: kill ssh-agent to work around systemd bug / OneShot 'cron'
This commit is contained in:
parent
8e55cbc5a6
commit
143a347c53
@ -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
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user