akkounts/.drone.yml
Sebastian Kippe 562b16cf89
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
Update Rails CI Docker image
2022-02-12 15:02:20 -06:00

53 lines
961 B
YAML

---
kind: pipeline
type: docker
aame: CI build
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- vendor
when:
branch:
- master
- name: rspec
image: guildeducation/rails:2.7.2-12.22.0
environment:
RAILS_ENV: test
commands:
- bundle install --jobs=3 --retry=3 --deployment --with development test
- yarn install
- yarn run build:css
- bundle exec rspec
when:
branch:
- master
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- vendor
when:
branch:
- master
volumes:
- name: cache
host:
path: /var/lib/drone/tmp
---
kind: signature
hmac: f9a8cf97f6596625721365f6238f6f298aa5a7a4de10c3fb61c57202ae9d1ee1
...