Set up CI (and CD?) #1

Closed
potato wants to merge 12 commits from in-fix-drone into master
Showing only changes of commit 8c810da612 - Show all commits

View File

@ -1,12 +1,22 @@
workspace:
base: /srv/jekyll
path: /
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- /drone/.bundle
volumes:
- /tmp/bundle-cache:/cache
build:
image: jekyll/minimal:3.8.3
image: ruby:2.5.1-alpine3.7
environment:
- BUNDLE_PATH=/drone/.bundle
commands:
- whoami
- cd ianonavy
- jekyll build
- bundle install
- bundle exec jekyll build
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- /drone/.bundle
volumes:
- /tmp/bundle-cache:/cache