drone cache
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sergio Álvarez 2022-05-15 14:43:59 +02:00
parent 91fa692611
commit 1040f8d94d
No known key found for this signature in database
GPG Key ID: BD711A37FE7DD77E
1 changed files with 30 additions and 4 deletions

View File

@ -4,14 +4,40 @@ type: docker
name: default
steps:
- name: backend
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- vendor
- name: build
image: ruby:latest
commands:
- bundle install
- bundle exec jekyll build
when:
branch:
- main
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- vendor
when:
branch:
- main
node:
location: marley
volumes:
- name: cache
host:
path: /var/lib/drone/temp