generalise
continuous-integration/drone/push Build is failing Details

This commit is contained in:
ktyl 2022-09-26 22:11:40 +01:00
parent 225e597060
commit 95b50f5072
1 changed files with 2 additions and 1 deletions

View File

@ -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}"