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,
|
||||
}: let
|
||||
inherit (lib) toList optionalAttrs optional;
|
||||
inherit (helpers) prependToBeforeScript appendToAfterScript filterJobVariables;
|
||||
inherit (helpers) prependToBeforeScript appendToAfterScript;
|
||||
in
|
||||
{
|
||||
key,
|
||||
|
|
@ -18,9 +18,8 @@ in
|
|||
))
|
||||
// optionalAttrs nixConfig.enable (
|
||||
(let
|
||||
variables =
|
||||
(filterJobVariables false job)
|
||||
// optionalAttrs nixConfig.enableRunnerCache {
|
||||
variables = job.variables or {} //
|
||||
optionalAttrs nixConfig.enableRunnerCache {
|
||||
NIX_CI_CACHE_STRATEGY = "runner";
|
||||
};
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue