1
0
Fork 0

Delete files on target
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Daniele Tricoli 2021-02-02 02:20:01 +01:00
parent 7b003e67aa
commit e06364dcf1

View file

@ -20,7 +20,7 @@ steps:
chmod 0700 ~/.ssh/config
echo "$SSH_KEY" > ~/.ssh/key
chmod 0600 ~/.ssh/key
- rsync -rP -e "ssh -p $PORT -i ~/.ssh/key" public/ "$USERNAME@$HOST:$DEPLOY_PATH"
- rsync -rP --delete -e "ssh -p $PORT -i ~/.ssh/key" public/ "$USERNAME@$HOST:$DEPLOY_PATH"
environment:
SSH_KEY:
from_secret: ssh_key