Recommend --deployment flag for Bundler

This commit is contained in:
Jakob Krigovsky 2020-05-02 17:51:41 +02:00
parent 9ceee97d99
commit 176dd05644

View file

@ -385,7 +385,13 @@ Replace `~/.local/share/renv` with the correct `path` if not using Ubuntu.
restore-keys: |
${{ runner.os }}-gems-
```
When dependencies are installed later in the workflow, we must specify the same path for the bundler.
When dependencies are installed later in the workflow, we must use the `--deployment` flag to install gems to `vendor/bundle`.
```yaml
- name: Bundle install
run: bundle install --deployment --jobs 4 --retry 3
```
If you dont want to run Bundler in deployment mode, you can instead use `bundle config`.
```yaml
- name: Bundle install