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

This commit is contained in:
oDinZu 2022-05-09 22:35:48 -04:00
parent 53aa886c01
commit 70925d420a

View File

@ -40,6 +40,7 @@ steps:
- whoami
- pwd
- ls -al
- ls /
- git --version && git status
# add dependencies to tmp vm machine
@ -57,7 +58,8 @@ steps:
- rm _site/docker-compose.yml
# update www-data branch with fresh drone ci Jekyll _site build
- git clone https://git.sharpetronics.com/sharpetronics/sharpetronics.com.git && cd sharpetronics.com/
- git clone https://git.sharpetronics.com/sharpetronics/sharpetronics.com.git
- cd sharpetronics.com/
- git checkout www-data
- cp -R ../_site/* .
- git add *
@ -65,14 +67,17 @@ steps:
- git push https://$GITEA_USER:$GITEA_PASS@git.sharpetronics.com/sharpetronics/sharpetronics.com.git
# write the ssh key to disk for rsync handshake to remote server
- mkdir -p /root/.ssh/ && touch /root/.ssh/id_rsa && touch /root/.ssh/id_rsa.pub
- mkdir -p /root/.ssh/
- touch /root/.ssh/id_rsa
- touch /root/.ssh/id_rsa.pub
- echo -n "$RSA_KEY" > /root/.ssh/id_rsa
- echo -n "$RSA_PUB_KEY" > /root/.ssh/id_rsa.pub
- cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
- chmod 600 /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa.pub
- ls -al /root/.ssh/ && ls /
- ssh-add /root/.ssh/id_rsa
- chmod 600 /root/.ssh/id_rsa
- chmod 600 /root/.ssh/id_rsa.pub
- ls -al /root/.ssh/
- eval `ssh-agent -s`
#- ssh-add /root/.ssh/id_rsa
# add git.sharpetronics.com to known hosts