cache simple
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
d667c9dd94
commit
c5a7c99524
23
.drone.yml
23
.drone.yml
|
@ -4,35 +4,18 @@ type: docker
|
||||||
name: deploy-jekyll-sergio.am
|
name: deploy-jekyll-sergio.am
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache
|
- name: build
|
||||||
image: drillster/drone-volume-cache
|
image: ruby:latest
|
||||||
volumes:
|
volumes:
|
||||||
- name: bundle-cache
|
- name: bundle-cache
|
||||||
path: /cache
|
path: /cache
|
||||||
settings:
|
|
||||||
restore: true
|
|
||||||
mount:
|
|
||||||
- /drone/.bundle
|
|
||||||
|
|
||||||
- name: build
|
|
||||||
image: ruby:latest
|
|
||||||
commands:
|
commands:
|
||||||
- bundle config set --local path /drone/.bundle
|
- bundle config set --local path /cache/.bundle
|
||||||
- bundle env
|
- bundle env
|
||||||
- bundle install
|
- bundle install
|
||||||
- ls -la /drone/.bundle
|
- ls -la /drone/.bundle
|
||||||
- bundle exec jekyll build
|
- bundle exec jekyll build
|
||||||
|
|
||||||
- name: rebuild-cache
|
|
||||||
image: drillster/drone-volume-cache
|
|
||||||
volumes:
|
|
||||||
- name: bundle-cache
|
|
||||||
path: /cache
|
|
||||||
settings:
|
|
||||||
rebuild: true
|
|
||||||
mount:
|
|
||||||
- /drone/.bundle
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
Loading…
Reference in New Issue