stockholm/old/deploy
2015-07-11 19:44:12 +02:00

16 lines
253 B
Bash
Executable File

#! /bin/sh
#
# usage: ./deploy system_name [target]
#
set -euf
system_name=$1
target=${2-root@$system_name}
nix-instantiate \
--argstr system-name "$system_name" \
--argstr deploy-target "$target" \
--eval --json . \
| jq -r . \
| sh