aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-09-07 16:15:29 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-09-07 16:15:29 +0200
commit46c62971ff0c4b70269b5e95dedd6e41d733c8db (patch)
tree2d169913e9fc922cd77ebdc619341d02a1131387
parentadd "Pause all userspace processes" (diff)
downloadblog-46c62971ff0c4b70269b5e95dedd6e41d733c8db.tar.gz
blog-46c62971ff0c4b70269b5e95dedd6e41d733c8db.zip
workflows: fix remote port
-rw-r--r--.github/workflows/jekyll.yml1
-rw-r--r--Makefile4
2 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml
index 07da697..36aabac 100644
--- a/.github/workflows/jekyll.yml
+++ b/.github/workflows/jekyll.yml
@@ -35,4 +35,5 @@ jobs:
env:
REMOTE_USER: '${{ secrets.REMOTE_USER }}'
REMOTE_HOST: '${{ secrets.REMOTE_HOST }}'
+ REMOTE_PORT: '${{ secrets.REMOTE_PORT }}'
REMOTE_DIR: '${{ secrets.REMOTE_DIR }}'
diff --git a/Makefile b/Makefile
index 153acb0..fc4eb0e 100644
--- a/Makefile
+++ b/Makefile
@@ -53,12 +53,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