cache settings
This commit is contained in:
parent
5ae9076ccc
commit
c0971f1cf8
14
.drone.yml
14
.drone.yml
|
@ -7,15 +7,17 @@ steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: bundle-cache
|
||||||
path: /cache
|
path: /cache
|
||||||
settings:
|
settings:
|
||||||
restore: true
|
restore: true
|
||||||
mount:
|
mount:
|
||||||
- vendor
|
- /drone/.bundle
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: ruby:latest
|
image: ruby:latest
|
||||||
|
environment:
|
||||||
|
- BUNDLE_PATH=/drone/.bundle
|
||||||
commands:
|
commands:
|
||||||
- bundle install
|
- bundle install
|
||||||
- bundle exec jekyll build
|
- bundle exec jekyll build
|
||||||
|
@ -23,12 +25,12 @@ steps:
|
||||||
- name: rebuild-cache
|
- name: rebuild-cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: bundle-cache
|
||||||
path: /cache
|
path: /cache
|
||||||
settings:
|
settings:
|
||||||
rebuild: true
|
rebuild: true
|
||||||
mount:
|
mount:
|
||||||
- vendor
|
- /drone/.bundle
|
||||||
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
@ -38,6 +40,6 @@ node:
|
||||||
location: marley
|
location: marley
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: bundle-cache
|
||||||
host:
|
host:
|
||||||
path: /var/lib/drone/temp
|
path: /tmp/ruby-bundle-cache-sergio.am
|
||||||
|
|
Loading…
Reference in New Issue