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 32cfda4825
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ steps:
from_secret: user from_secret: user
SSH_KEY: SSH_KEY:
from_secret: ssh_key from_secret: ssh_key
SRC: content/*
DEST: gemini/content DEST: gemini/content
commands: commands:
@ -28,4 +29,4 @@ steps:
- echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- cat ~/.ssh/config - cat ~/.ssh/config
- ssh "$${USER}@$${HOST}" "[[ -d $${DEST} ]] && rm -r $${DEST}" - ssh "$${USER}@$${HOST}" "[[ -d $${DEST} ]] && rm -r $${DEST}"
- rsync -rP content/* "$${USER}@$${HOST}:$${DEST}" - rsync -rP $SRC "$${USER}@$${HOST}:$${DEST}"