From b63258f30497faee8987a6afbdb1dcb8f58dea92 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 3 Jan 2024 21:13:21 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .../project/pages/getting_started/pages_from_scratch.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/user/project') diff --git a/doc/user/project/pages/getting_started/pages_from_scratch.md b/doc/user/project/pages/getting_started/pages_from_scratch.md index 9de2703b82b..0695cc20ccd 100644 --- a/doc/user/project/pages/getting_started/pages_from_scratch.md +++ b/doc/user/project/pages/getting_started/pages_from_scratch.md @@ -70,7 +70,7 @@ This specific Ruby image is maintained on [DockerHub](https://hub.docker.com/_/r Edit your `.gitlab-ci.yml` file and add this text as the first line: ```yaml -image: ruby:2.7 +image: ruby:3.2 ``` If your SSG needs [NodeJS](https://nodejs.org/) to build, you must specify an @@ -156,7 +156,7 @@ pages: Your `.gitlab-ci.yml` file should now look like this: ```yaml -image: ruby:2.7 +image: ruby:3.2 pages: script: @@ -198,7 +198,7 @@ First, add a `workflow` section to force the pipeline to run only when changes a pushed to branches: ```yaml -image: ruby:2.7 +image: ruby:3.2 workflow: rules: @@ -218,7 +218,7 @@ Then configure the pipeline to run the job for the [default branch](../../repository/branches/default.md) (here, `main`) only. ```yaml -image: ruby:2.7 +image: ruby:3.2 workflow: rules: @@ -249,7 +249,7 @@ To specify a stage for your job to run in, add a `stage` line to your CI file: ```yaml -image: ruby:2.7 +image: ruby:3.2 workflow: rules: @@ -273,7 +273,7 @@ Now add another job to the CI file, telling it to test every push to every branch **except** the `main` branch: ```yaml -image: ruby:2.7 +image: ruby:3.2 workflow: rules: @@ -325,7 +325,7 @@ for both jobs, `pages` and `test`. Move these commands to a `before_script` section: ```yaml -image: ruby:2.7 +image: ruby:3.2 workflow: rules: @@ -366,7 +366,7 @@ This example caches Jekyll dependencies in a `vendor` directory when you run `bundle install`: ```yaml -image: ruby:2.7 +image: ruby:3.2 workflow: rules: -- cgit v1.2.3