2018-07-03 14:32:57 +02:00
|
|
|
pipeline:
|
|
|
|
restore-cache:
|
|
|
|
image: drillster/drone-volume-cache
|
|
|
|
restore: true
|
|
|
|
mount:
|
|
|
|
- /drone/.bundle
|
|
|
|
volumes:
|
|
|
|
- jekyll-blog-cache:/cache
|
|
|
|
build:
|
|
|
|
image: ruby
|
|
|
|
environment:
|
|
|
|
- BUNDLE_PATH=/drone/.bundle
|
|
|
|
commands:
|
|
|
|
- bundle install
|
|
|
|
- JEKYLL_ENV=production bundle exec jekyll build && bundle exec htmlproofer _site/ --disable-external
|
|
|
|
rebuild-cache:
|
|
|
|
image: drillster/drone-volume-cache
|
|
|
|
rebuild: true
|
|
|
|
mount:
|
|
|
|
- /drone/.bundle
|
|
|
|
volumes:
|
|
|
|
- jekyll-blog-cache:/cache
|
|
|
|
deploy:
|
|
|
|
image: drillster/drone-rsync
|
|
|
|
hosts: [ "wolf.uberspace.de" ]
|
|
|
|
user: martens7
|
|
|
|
source: ./_site
|
|
|
|
target: ~/tmp/build
|
|
|
|
recursive: true
|
|
|
|
delete: true
|
2018-07-03 16:27:22 +02:00
|
|
|
secrets: [ rsync_key ]
|
2018-07-03 14:32:57 +02:00
|
|
|
script:
|
|
|
|
- rm -rf tmp/old.build
|
|
|
|
- mkdir tmp/old.build
|
|
|
|
- mv html/{.,}* tmp/old.build/
|
|
|
|
- mv tmp/build/{.,}* html/
|
|
|
|
- rm -rf tmp/build
|
|
|
|
notify:
|
|
|
|
image: drillster/drone-email
|
|
|
|
host: wolf.uberspace.de
|
|
|
|
port: 587
|
|
|
|
from: Drone <drone@2martens.de>
|
|
|
|
when:
|
|
|
|
status: [ failure ]
|
|
|
|
|
|
|
|
branches: master
|
|
|
|
|
|
|
|
|