Cache dependencies on CI
https://florian-latifi.at/2018/02/21/using-drone-to-build-and-deploy-a-jekyll-site/ https://git.florian-latifi.at/flortsch/jekyll-blog/src/branch/master/.drone.yml
This commit is contained in:
parent
5933c387b6
commit
c86480e72b
25
.drone.yml
25
.drone.yml
@ -3,12 +3,35 @@ type: docker
|
|||||||
name: CI build
|
name: CI build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: restore-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
restore: true
|
||||||
|
mount:
|
||||||
|
- vendor
|
||||||
- name: rspec
|
- name: rspec
|
||||||
image: guildeducation/rails:2.7.1-12.19.0
|
image: guildeducation/rails:2.7.1-12.19.0
|
||||||
commands:
|
commands:
|
||||||
- bundle install --jobs=3 --retry=3
|
- bundle install --jobs=3 --retry=3 --deployment
|
||||||
- yarn install
|
- yarn install
|
||||||
- bundle exec rspec
|
- bundle exec rspec
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
rebuild: true
|
||||||
|
mount:
|
||||||
|
- vendor
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/drone/tmp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user