mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 10:10:06 +01:00
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:
parent
fa33f6e0b7
commit
afe1e02310
1 changed files with 3 additions and 3 deletions
|
|
@ -637,12 +637,12 @@ in rec {
|
||||||
// gitlabOptions;
|
// gitlabOptions;
|
||||||
config = let
|
config = let
|
||||||
attrsToKeep = builtins.attrNames gitlabOptions;
|
attrsToKeep = builtins.attrNames gitlabOptions;
|
||||||
|
job = filterUnset (filterAttrs (n: _v: builtins.elem n attrsToKeep) config);
|
||||||
in {
|
in {
|
||||||
finalConfig = cilib.mkJobPatched {
|
finalConfig = cilib.mkJobPatched {
|
||||||
key = name;
|
key = name;
|
||||||
job = filterUnset (filterAttrs (n: _v: builtins.elem n attrsToKeep) config);
|
|
||||||
nixConfig = config.nix;
|
nixConfig = config.nix;
|
||||||
inherit pipelineName;
|
inherit job pipelineName;
|
||||||
};
|
};
|
||||||
depsDrv = cilib.mkJobDeps {
|
depsDrv = cilib.mkJobDeps {
|
||||||
key = name;
|
key = name;
|
||||||
|
|
@ -651,8 +651,8 @@ in rec {
|
||||||
};
|
};
|
||||||
runnerDrv = cilib.mkJobRun {
|
runnerDrv = cilib.mkJobRun {
|
||||||
key = name;
|
key = name;
|
||||||
job = config.finalConfig;
|
|
||||||
jobDeps = config.depsDrv;
|
jobDeps = config.depsDrv;
|
||||||
|
inherit job;
|
||||||
};
|
};
|
||||||
packages = {
|
packages = {
|
||||||
"gitlab-ci:pipeline:${pipelineName}:job-deps:${name}" = config.depsDrv;
|
"gitlab-ci:pipeline:${pipelineName}:job-deps:${name}" = config.depsDrv;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue