deploy-rs
This commit is contained in:
parent
3b2e7a9d02
commit
b09bddc403
1 changed files with 6 additions and 4 deletions
|
|
@ -40,11 +40,13 @@ writeShellScriptBin "deploy-rs-online" ''
|
|||
fi
|
||||
|
||||
# Run nix flake check first
|
||||
if ! $SKIP_CHECKS_SET; then
|
||||
echo "Running nix flake check on $FLAKE_PATH..."
|
||||
if ! nix flake check "$FLAKE_PATH"; then
|
||||
echo "$RED Flake check failed! Aborting deployment. $NC"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Get node names
|
||||
NODES=$(nix eval --json "$FLAKE_PATH#deploy.nodes" | ${lib.getExe jq} -r 'keys[]')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue