Commit 71fd4fa0 authored by Takuya Noguchi's avatar Takuya Noguchi Committed by Marcel Amirault

Replace ruby:2.5 with ruby:3.0 in CI docs

parent 05def397
...@@ -92,19 +92,19 @@ These job keywords can be defined inside a `default:` section: ...@@ -92,19 +92,19 @@ These job keywords can be defined inside a `default:` section:
- [`tags`](#tags) - [`tags`](#tags)
- [`timeout`](#timeout) - [`timeout`](#timeout)
The following example sets the `ruby:2.5` image as the default for all jobs in the pipeline. The following example sets the `ruby:3.0` image as the default for all jobs in the pipeline.
The `rspec 2.6` job does not use the default, because it overrides the default with The `rspec 2.7` job does not use the default, because it overrides the default with
a job-specific `image:` section: a job-specific `image:` section:
```yaml ```yaml
default: default:
image: ruby:2.5 image: ruby:3.0
rspec: rspec:
script: bundle exec rspec script: bundle exec rspec
rspec 2.6: rspec 2.7:
image: ruby:2.6 image: ruby:2.7
script: bundle exec rspec script: bundle exec rspec
``` ```
...@@ -5088,13 +5088,14 @@ Use [`default:`](#custom-default-keyword-values) instead. For example: ...@@ -5088,13 +5088,14 @@ Use [`default:`](#custom-default-keyword-values) instead. For example:
```yaml ```yaml
default: default:
image: ruby:2.5 image: ruby:3.0
services: services:
- docker:dind - docker:dind
cache: cache:
paths: [vendor/] paths: [vendor/]
before_script: before_script:
- bundle install --path vendor/ - bundle config set path vendor/bundle
- bundle install
after_script: after_script:
- rm -rf tmp/ - rm -rf tmp/
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment