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 {
setup-script = setupScript "# extra_setup";
finalize-script = finalizeScript "true # push_command";
image = mkImage [
(setupScript ''
echo "No caching configured, to enable caching use the respective container image tag"

View file

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