diff options
author | tv <tv@krebsco.de> | 2016-02-16 08:24:08 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-16 08:24:08 +0100 |
commit | f7a3c26e5c294bbf3ce4505c5b273153cfe48afc (patch) | |
tree | 9aa596405993c125b99ee5279a55b88050c885aa /Makefile | |
parent | be6baa050d6a047a9e2885b08c297ef3e1d802b4 (diff) |
make {deploy,test}: make ssh configurable
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -54,9 +54,10 @@ execute = \ echo "$$script" | sh # usage: make deploy system=foo [target_host=bar] +deploy: ssh ?= ssh deploy: $(call execute,populate) - ssh $(target_user)@$(target_host) -p $(target_port) \ + $(ssh) $(target_user)@$(target_host) -p $(target_port) \ nixos-rebuild switch --show-trace -I $(target_path) # usage: make LOGNAME=shared system=wolf eval.config.krebs.build.host.name @@ -75,8 +76,9 @@ install: nixos-install # usage: make test system=foo [target=bar] +test: ssh ?= ssh test: $(call execute,populate) - ssh $(target_user)@$(target_host) -p $(target_port) \ + $(ssh) $(target_user)@$(target_host) -p $(target_port) \ nix-build --no-out-link --show-trace -I $(target_path) \ -A config.system.build.toplevel $(target_path)/stockholm |