Skip to content

Commit

Permalink
Use volumes to maintain dependencies between steps
Browse files Browse the repository at this point in the history
  • Loading branch information
emmajphillips committed Feb 12, 2024
1 parent 59e5da7 commit c4cd7d9
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,28 @@ steps:

- name: install_ruby
image: ruby:3.3.0
environment:
- BUNDLE_APP_CONFIG: ./.bundle
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- bundle config set path 'vendor/bundle'
- bundle install
depends_on:
- clone

- name: run_tests
- name: run_lint_tests
image: ruby:3.3.0
environment:
- BUNDLE_APP_CONFIG: ./.bundle
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- bundle exec rake --trace
depends_on:
- install_ruby

volumes:
- name: bundle
temp: {}

trigger:
event:
- push
Expand Down

0 comments on commit c4cd7d9

Please sign in to comment.