niv update + shell fix

This commit is contained in:
kat witch 2021-08-27 04:02:31 +01:00
parent 1db3a7d11d
commit 907bb6facd
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
3 changed files with 74 additions and 17 deletions

View file

@ -25,37 +25,37 @@ let
'';
nf-actions = pkgs.writeShellScriptBin "nf-actions" ''
export START_DIR="$PWD"
cd ${toString ./.}
cd "${toString ./.}"
export NF_CONFIG_ROOT=${toString ./.}/ci
NF_CONFIG_FILES=($NF_CONFIG_ROOT/{nodes,niv-cron}.nix)
for f in "''${NF_CONFIG_FILES[@]}"; do
echo $f
nix run --arg config $f ci.run.gh-actions-generate
nix run --argstr config "$f" ci.run.gh-actions-generate
done
cd ${toString ./config/trusted}
cd "${toString ./config/trusted}"
export TRUSTED_CONFIG_ROOT=${toString ./config/trusted}/ci
TRUSTED_CONFIG_FILES=($TRUSTED_CONFIG_ROOT/nodes.nix)
for f in "''${TRUSTED_CONFIG_FILES[@]}"; do
echo $f
nix run --arg config $f ci.run.gh-actions-generate
nix run --argstr config "$f" ci.run.gh-actions-generate
done
cd $START_DIR
'';
nf-actions-test = pkgs.writeShellScriptBin "nf-actions-test" ''
export START_DIR="$PWD"
cd ${toString ./.}
cd "${toString ./.}"
export NF_CONFIG_ROOT=${toString ./.}/ci
NF_CONFIG_FILES=($NF_CONFIG_ROOT/{nodes,niv-cron}.nix)
for f in "''${NF_CONFIG_FILES[@]}"; do
echo $f
nix run --arg config $f ci.test
nix run --argstr config "$f" ci.test
done
cd ${toString ./config/trusted}
cd "${toString ./config/trusted}"
export TRUSTED_CONFIG_ROOT=${toString ./config/trusted}/ci
TRUSTED_CONFIG_FILES=($TRUSTED_CONFIG_ROOT/nodes.nix)
for f in "''${TRUSTED_CONFIG_FILES[@]}"; do
echo $f
nix run --arg config $f ci.test
nix run --argstr config "$f" ci.test
done
cd $START_DIR
'';