mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 02:00:13 +01:00
fix(jobPatched) Removed too frequent filtering of variables
Removed excessive disposal of environment variables containing paths to nix store package files, plus improved tests for this functionality.
This commit is contained in:
parent
f84edb7760
commit
d2f8a70675
2 changed files with 6 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
helpers,
|
helpers,
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) toList optionalAttrs optional;
|
inherit (lib) toList optionalAttrs optional;
|
||||||
inherit (helpers) prependToBeforeScript appendToAfterScript filterJobVariables;
|
inherit (helpers) prependToBeforeScript appendToAfterScript;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
key,
|
key,
|
||||||
|
|
@ -18,9 +18,8 @@ in
|
||||||
))
|
))
|
||||||
// optionalAttrs nixConfig.enable (
|
// optionalAttrs nixConfig.enable (
|
||||||
(let
|
(let
|
||||||
variables =
|
variables = job.variables or {} //
|
||||||
(filterJobVariables false job)
|
optionalAttrs nixConfig.enableRunnerCache {
|
||||||
// optionalAttrs nixConfig.enableRunnerCache {
|
|
||||||
NIX_CI_CACHE_STRATEGY = "runner";
|
NIX_CI_CACHE_STRATEGY = "runner";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
after_script = [ "finalize_nix_ci" ];
|
after_script = [ "finalize_nix_ci" ];
|
||||||
before_script = [ "source setup_nix_ci \"gitlab-ci:pipeline:test:job-deps:test\"" ];
|
before_script = [ "source setup_nix_ci \"gitlab-ci:pipeline:test:job-deps:test\"" ];
|
||||||
variables = {
|
variables = {
|
||||||
#BASH = toString pkgs.bash;
|
BASH = toString pkgs.bash;
|
||||||
TEST = "work";
|
TEST = "work";
|
||||||
};
|
};
|
||||||
cache = [{
|
cache = [{
|
||||||
|
|
@ -129,7 +129,7 @@
|
||||||
}];
|
}];
|
||||||
variables = {
|
variables = {
|
||||||
NIX_CI_CACHE_STRATEGY = "runner";
|
NIX_CI_CACHE_STRATEGY = "runner";
|
||||||
#BASH = toString pkgs.bash;
|
BASH = toString pkgs.bash;
|
||||||
TEST = "work";
|
TEST = "work";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -264,7 +264,7 @@
|
||||||
}];
|
}];
|
||||||
variables = {
|
variables = {
|
||||||
SAMPLE = "working";
|
SAMPLE = "working";
|
||||||
#HELLO = toString pkgs.hello;
|
HELLO = toString pkgs.hello;
|
||||||
NIX_CI_CACHE_STRATEGY = "runner";
|
NIX_CI_CACHE_STRATEGY = "runner";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue