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() {
|
finish_ci() {
|
||||||
ssh-add -d /run/secrets/ci_ed25519_key
|
ssh-add -d /run/secrets/ci_ed25519_key
|
||||||
ssh-add -d /run/secrets/ci_signing_ed25519_key
|
ssh-add -d /run/secrets/ci_signing_ed25519_key
|
||||||
|
pkill ssh-agent # TODO: https://github.com/systemd/systemd/pull/28035
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +41,9 @@ let
|
|||||||
value = {
|
value = {
|
||||||
script = mkCronScript "${job.name}_script" job.script;
|
script = mkCronScript "${job.name}_script" job.script;
|
||||||
inherit (job) startAt path;
|
inherit (job) startAt path;
|
||||||
|
serviceConfig = {
|
||||||
|
OneShot = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
jobToService = job: {
|
jobToService = job: {
|
||||||
@ -48,7 +51,10 @@ let
|
|||||||
value = {
|
value = {
|
||||||
script = mkCronScript "${job.name}_script" job.script;
|
script = mkCronScript "${job.name}_script" job.script;
|
||||||
inherit (job) startAt path;
|
inherit (job) startAt path;
|
||||||
serviceConfig = { User = "${job.user}"; };
|
serviceConfig = {
|
||||||
|
User = "${job.user}";
|
||||||
|
OneShot = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
buildShell = pkgs:
|
buildShell = pkgs:
|
||||||
|
Loading…
Reference in New Issue
Block a user