From 7ef8d99cefcda234d688eb56edb9f1ec80525726 Mon Sep 17 00:00:00 2001 From: ktyl Date: Mon, 26 Sep 2022 21:54:01 +0100 Subject: [PATCH] update capsule --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index c125818..a341adc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,7 @@ steps: commands: - apt-get update -qq > /dev/null - - apt-get install ssh -qq > /dev/null + - apt-get install ssh rsync -qq > /dev/null # a comment hopefully - which ssh-agent - eval $(ssh-agent -s) @@ -27,4 +27,5 @@ steps: # skip key checking - echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - cat ~/.ssh/config - - ssh gemini@period3.xyz "chmod +x deploy.sh && bash deploy.sh $REPO" + - ssh gemini@period3.xyz "[[ -d gemini/content ]] && rm -r gemini/content" + - rsync -rP content/* gemini@period3.xyz:gemini/content