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

This commit is contained in:
oDinZu 2022-05-09 21:21:53 -04:00
parent 795f71ead3
commit 532e2b4288

View File

@ -69,14 +69,14 @@ steps:
- echo -n "$RSA_KEY" > /root/.ssh/id_rsa
- echo -n "$RSA_PUB_KEY" > /root/.ssh/id_rsa.pub
- chmod 600 /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa.pub
- ls -al /root/.ssh/
- ls -al /root/.ssh/ && ls /home/
- eval `ssh-agent -s`
- ssh-add /root/.ssh/id_rsa
# add git.sharpetronics.com to known hosts
- touch /root/.ssh/known_hosts
- chmod 600 /root/.ssh/known_hosts
#- ssh-keyscan -H git.sharpetronics.com > /etc/ssh/ssh_known_hosts 2> /dev/null
- ssh-keyscan -H git.sharpetronics.com > /etc/ssh/ssh_known_hosts 2> /dev/null
# sync files to remote server [local _site ] to [remote _site www]
- rsync -aXvPzr ../_site --rsh="ssh -i /root/.ssh/id_rsa" $SSH_USER@$SSH_HOST:/var/www/demo.sharpetronics.com