This commit is contained in:
parent
5802bd583a
commit
7b1b7ed380
16
.drone.yml
16
.drone.yml
@ -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/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user