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 name: default
steps: 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 image: ruby:latest
commands: commands:
- bundle install - bundle install
- bundle exec jekyll build - bundle exec jekyll build
when:
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- vendor
when:
branch: branch:
- main - main
node: node:
location: marley location: marley
volumes:
- name: cache
host:
path: /var/lib/drone/temp