From 425d20d2001d87eff0e6aa3c605bf30ff2063f60 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 15 Oct 2022 14:44:16 +0200 Subject: workflows: set remote port --- .github/workflows/ci.yml | 1 + Makefile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01b2920..10dae15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.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 2c9f077..2f0527c 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 -- cgit v1.2.3