diff --git a/hack/deploy.sh b/hack/deploy.sh index c0936e401a..6719baada1 100755 --- a/hack/deploy.sh +++ b/hack/deploy.sh @@ -8,15 +8,10 @@ set -euo pipefail ./hack/populate_secrets.sh -ssh_cmd="ssh -o StrictHostKeyChecking=accept-new" - if [ ! -z ${2+x} ]; then ssh_cmd="$ssh_cmd $2"; fi system="$(nix run nixpkgs.jq -c jq -r ".[\"${1}\"]" systems.json)" echo System is $system -echo Syncing repo content to machine "$1" -rsync -e "$ssh_cmd" -avz --exclude='.hg/store/data/' --exclude='.hg/store/dh/' --exclude='.hg/cache/' --exclude='.hg/wcache/' ./ "deployer@$1:depot/" - -echo Triggering rebuild -$ssh_cmd -t "deployer@$1" rebuilder ./depot +ssh_cmd="ssh -o StrictHostKeyChecking=accept-new" +$ssh_cmd -t "deployer@$1" switch-prebuilt "$system"