From 95b50f50725c6ea514929853000dd48608af1f61 Mon Sep 17 00:00:00 2001 From: ktyl Date: Mon, 26 Sep 2022 22:11:40 +0100 Subject: [PATCH] generalise --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 83cf8f1..4b4a595 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,6 +12,7 @@ steps: from_secret: user SSH_KEY: from_secret: ssh_key + SRC: content/* DEST: gemini/content commands: @@ -28,4 +29,4 @@ steps: - echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - cat ~/.ssh/config - ssh "$${USER}@$${HOST}" "[[ -d $${DEST} ]] && rm -r $${DEST}" - - rsync -rP content/* "$${USER}@$${HOST}:$${DEST}" + - rsync -rP $SRC "$${USER}@$${HOST}:$${DEST}"