deploy: Do not fail with broken local config

This commit is contained in:
Simon Bruder 2021-01-29 16:04:38 +01:00
parent 241bc188cb
commit 82d5a24dfa
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -23,6 +23,10 @@ let
deploy = '' deploy = ''
set -e set -e
# If a deployment to localhost introduces an evaluation error, future
# deployments will fail since the overlay compat cant parse the
# configuration. Overlays arent needed to build the krops deploy script.
export NIX_PATH="$(sed 's/:nixpkgs-overlays=[^:]*//' <<< "$NIX_PATH")"
$(nix-build --no-out-link deploy.nix -A "$1") $(nix-build --no-out-link deploy.nix -A "$1")
''; '';