sergio.am/.drone.yml

46 lines
699 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
2022-05-15 12:55:04 +00:00
environment:
2022-05-15 12:57:07 +00:00
BUNDLE_PATH: /drone/.bundle
2022-05-11 18:02:32 +00:00
commands:
- bundle install
- 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 12:55:04 +00:00
path: /tmp/ruby-bundle-cache-sergio.am