mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-14 06:54:20 +02:00
Use the --deployment flag for bundle install
`bundle install --deployment` should be used on CI environments - it sets additional options beyond the install path (ensures the Gemfile.lock is checked in, up to date, etc). https://bundler.io/v2.0/man/bundle-install.1.html#DEPLOYMENT-MODE
This commit is contained in:
committed by
Benoit Daloze
parent
d01e942f09
commit
a1d280134e
@@ -128,9 +128,7 @@ You can cache the installed gems with these two steps:
|
||||
restore-keys: |
|
||||
bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-
|
||||
- name: bundle install
|
||||
run: |
|
||||
bundle config path vendor/bundle
|
||||
bundle install --jobs 4 --retry 3
|
||||
run: bundle install --deployment --jobs 4
|
||||
```
|
||||
|
||||
When using a single OS, replace `${{ matrix.os }}` with the OS.
|
||||
|
||||
Reference in New Issue
Block a user