fix(module): fix before_script not getting appended if it exists

[skip ci]
This commit is contained in:
technofab 2024-03-17 21:10:10 +01:00
parent f460960ce6
commit b1117dd620
2 changed files with 6 additions and 5 deletions

View file

@ -121,6 +121,8 @@
}; };
}; };
in { in {
setup-script = setupScript "# extra_setup";
finalize-script = finalizeScript "true # push_command";
image = mkImage [ image = mkImage [
(setupScript '' (setupScript ''
echo "No caching configured, to enable caching use the respective container image tag" echo "No caching configured, to enable caching use the respective container image tag"

View file

@ -162,11 +162,10 @@
(prependToBeforeScript [ (prependToBeforeScript [
"source setup_nix_ci ${key}" "source setup_nix_ci ${key}"
] ]
job) (prependToAfterScript [
// (prependToAfterScript [
"finalize_nix_ci" "finalize_nix_ci"
] ]
job) job))
// lib.optionalAttrs job.nix { // lib.optionalAttrs job.nix {
image = job.image; image = job.image;
} }