drone ci rsync test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
oDinZu 2022-05-09 20:34:03 -04:00
parent b3f9a37595
commit f3db39d8f3

View File

@ -68,7 +68,7 @@ steps:
- chmod 600 /root/.ssh/id_rsa
# sync files to remote server [local _site ] to [remote _site www]
- cat /root/.ssh/id_rsa
- rsync -aXvPzr --rsh="ssh -i /root/.ssh/id_rsa" $SSH_USER@$SSH_HOST:../site/* /var/www/demo.sharpetronics.com
- rsync -aXvPzr ../site/* --rsh="ssh -i /root/.ssh/id_rsa" $SSH_USER@$SSH_HOST:/var/www/demo.sharpetronics.com
# create tar.gz of _site directory for download elsewhere
- tar -czf ../www-data.tar.gz ../_site/*