fix(job): use unmodified job for mkJobRun

otherwise it tries to run "setup_nix_ci" etc. when running locally,
which doesn't make sense here
This commit is contained in:
technofab 2025-11-13 21:39:38 +01:00
parent fa33f6e0b7
commit afe1e02310
No known key found for this signature in database

View file

@ -637,12 +637,12 @@ in rec {
// gitlabOptions;
config = let
attrsToKeep = builtins.attrNames gitlabOptions;
job = filterUnset (filterAttrs (n: _v: builtins.elem n attrsToKeep) config);
in {
finalConfig = cilib.mkJobPatched {
key = name;
job = filterUnset (filterAttrs (n: _v: builtins.elem n attrsToKeep) config);
nixConfig = config.nix;
inherit pipelineName;
inherit job pipelineName;
};
depsDrv = cilib.mkJobDeps {
key = name;
@ -651,8 +651,8 @@ in rec {
};
runnerDrv = cilib.mkJobRun {
key = name;
job = config.finalConfig;
jobDeps = config.depsDrv;
inherit job;
};
packages = {
"gitlab-ci:pipeline:${pipelineName}:job-deps:${name}" = config.depsDrv;