sergio.am/.drone.yml

47 lines
764 B
YAML
Raw Normal View History

2022-05-11 18:02:32 +00:00
---
kind: pipeline
type: docker
2022-05-15 12:49:22 +00:00
name: deploy-jekyll-sergio.am
2022-05-11 17:56:50 +00:00
2022-05-11 18:02:32 +00:00
steps:
2022-05-15 12:43:59 +00:00
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
2022-05-15 12:55:04 +00:00
- name: bundle-cache
2022-05-15 12:43:59 +00:00
path: /cache
settings:
restore: true
mount:
2022-05-15 12:55:04 +00:00
- /drone/.bundle
2022-05-15 12:43:59 +00:00
- name: build
2022-05-11 18:02:32 +00:00
image: ruby:latest
commands:
2022-05-15 13:08:08 +00:00
- bundle config set --local path /drone/.bundle
- bundle env
2022-05-11 18:02:32 +00:00
- bundle install
2022-05-15 13:15:37 +00:00
- ls -la /drone/.bundle
2022-05-11 18:02:32 +00:00
- bundle exec jekyll build
2022-05-15 12:43:59 +00:00
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
2022-05-15 12:55:04 +00:00
- name: bundle-cache
2022-05-15 12:43:59 +00:00
path: /cache
settings:
rebuild: true
mount:
2022-05-15 12:55:04 +00:00
- /drone/.bundle
2022-05-15 12:43:59 +00:00
when:
branch:
- main
2022-05-11 18:04:54 +00:00
node:
location: marley
2022-05-15 12:43:59 +00:00
volumes:
2022-05-15 12:55:04 +00:00
- name: bundle-cache
2022-05-15 12:43:59 +00:00
host:
2022-05-15 13:15:37 +00:00
path: /var/lib/drone/temp/ruby-bundle-cache-sergio.am