aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-10-16 11:30:36 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-10-16 11:30:36 +0200
commitf4a2bebbf28e5c30c61fda30e07d006af508422a (patch)
tree8498502178330f7e9c130b3b45a1bc379b22a552 /Makefile
parentlink back to egort.name, again (diff)
downloadcv-f4a2bebbf28e5c30c61fda30e07d006af508422a.tar.gz
cv-f4a2bebbf28e5c30c61fda30e07d006af508422a.zip
workflows/build: fix remote port
Diffstat (limited to '')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 214a8b7..821266d 100644
--- a/Makefile
+++ b/Makefile
@@ -51,15 +51,17 @@ view:
REMOTE_USER ?= who
REMOTE_HOST ?= where
+REMOTE_PORT ?= 22
REMOTE_DIR ?= /path/to/dir
$(eval $(call noexpand,REMOTE_USER))
$(eval $(call noexpand,REMOTE_HOST))
+$(eval $(call noexpand,REMOTE_PORT))
$(eval $(call noexpand,REMOTE_DIR))
.PHONY: deploy
deploy:
- rsync -avh -e 'ssh -o StrictHostKeyChecking=no' '$(call escape,$(name)/)' '$(call escape,$(REMOTE_USER)@$(REMOTE_HOST):$(REMOTE_DIR)/)' --delete
+ rsync -avh -e 'ssh -p $(call escape,$(REMOTE_PORT)) -o StrictHostKeyChecking=no' '$(call escape,$(name)/)' '$(call escape,$(REMOTE_USER)@$(REMOTE_HOST):$(REMOTE_DIR)/)' --delete
.PHONY: clean
clean: