polishing .drone.yaml config + rsync to downloads page
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
oDinZu 2022-05-13 20:37:08 -04:00
parent 66b39a13f4
commit b598f69990

View File

@ -42,7 +42,7 @@ steps:
# add dependencies to tmp docker vm
- apt-get update && apt-get -y install rsync sshpass openssh-server openssh-client
- rsync --version
- rsync --version
# write the ssh key to disk for rsync handshake to remote server
- mkdir -p ~/.ssh/
@ -81,10 +81,11 @@ steps:
- git push https://$GITEA_USER:$GITEA_PASS@git.sharpetronics.com/sharpetronics/sharpetronics.com.git
# sync files to remote server [local _site ] to [remote _site www]
- rsync -aXvPzr -e ssh ../_site/* $SSH_USER@$SSH_HOST:/var/www/sharpetronics.com/html/
- rsync -aXPzr -e ssh ../_site/* $SSH_USER@$SSH_HOST:/var/www/sharpetronics.com/html/
# create tar.gz of _site directory for download elsewhere
- tar -czf ../www-data_sharpetronics.tar.gz ../_site/*
- tar tzvf ../www-data_sharpetronics.tar.gz | sed 's/ \+/ /g' | cut -f3 -d' ' | sed '2,$s/^/+ /' | paste -sd' ' | bc
- ls ../ww*
# add download of files from download.sharpetronics.com