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

This commit is contained in:
oDinZu 2022-05-10 00:24:49 -04:00
parent 5802bd583a
commit 7b1b7ed380

View File

@ -51,13 +51,6 @@ steps:
# add dependencies to tmp vm machine
- apt-get update && apt-get -y install rsync sshpass
# setup Jekyll permissions and build jekyll site
- adduser --no-create-home --disabled-password --gecos "" jekyll
- chown -R jekyll:jekyll /drone/src
- gem install bundler
- bundle install
- bundle exec jekyll build --trace
# prepare _site dir
- ls -a _site/
- rm _site/docker-compose.yml
@ -78,6 +71,13 @@ steps:
#- ssh-add /root/.ssh/id_rsa
#- ls -al /root/.ssh/
# setup Jekyll permissions and build jekyll site
- adduser --no-create-home --disabled-password --gecos "" jekyll
- chown -R jekyll:jekyll /drone/src
- gem install bundler
- bundle install
- bundle exec jekyll build --trace
# update www-data branch with fresh drone ci Jekyll _site build
- git clone https://git.sharpetronics.com/sharpetronics/sharpetronics.com.git
- cd sharpetronics.com/
@ -87,8 +87,6 @@ steps:
- git commit -m "bots beeing bots! A drone www-data push"
- 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 ../_site --rsh="ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" odinzu@45.33.119.101:/var/www/demo.sharpetronics.com/