aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-09-07 16:20:15 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-09-07 16:20:15 +0200
commit6d12dfc847709ece29a363c4754b960ab9c5fe7c (patch)
tree6264637a4e170499af6ce3a96908b4f7d790e047 /Makefile
parentREADME: update (diff)
downloadegor-tensin.github.io-6d12dfc847709ece29a363c4754b960ab9c5fe7c.tar.gz
egor-tensin.github.io-6d12dfc847709ece29a363c4754b960ab9c5fe7c.zip
workflows: set remote port
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index eb5d702..fdbb32f 100644
--- a/Makefile
+++ b/Makefile
@@ -54,12 +54,14 @@ 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' _site/ '$(call escape,$(REMOTE_USER)@$(REMOTE_HOST):$(REMOTE_DIR)/)' --delete
+ rsync -avh -e 'ssh -p $(call escape,$(REMOTE_PORT)) -o StrictHostKeyChecking=no' _site/ '$(call escape,$(REMOTE_USER)@$(REMOTE_HOST):$(REMOTE_DIR)/)' --delete