Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-04 00:06:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-04 00:06:59 +0300
commit037e06544afe9593e47f95b2b36f92480a54e34c (patch)
treec84613c0d45e4b83cde04389dd18921921308388 /doc/ci/services
parente8e149fc945f6f78725f312254577fb03b7666ec (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci/services')
-rw-r--r--doc/ci/services/index.md47
1 files changed, 22 insertions, 25 deletions
diff --git a/doc/ci/services/index.md b/doc/ci/services/index.md
index 2e7e89fc601..efcb1cac755 100644
--- a/doc/ci/services/index.md
+++ b/doc/ci/services/index.md
@@ -240,18 +240,17 @@ variables:
PGDATA: "/var/lib/postgresql/data"
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --data-checksums"
-services:
- - name: postgres:11.7
- alias: db
- entrypoint: ["docker-entrypoint.sh"]
- command: ["postgres"]
-
-image:
- name: ruby:2.6
- entrypoint: ["/bin/bash"]
-
-before_script:
- - bundle install
+default:
+ services:
+ - name: postgres:11.7
+ alias: db
+ entrypoint: ["docker-entrypoint.sh"]
+ command: ["postgres"]
+ image:
+ name: ruby:2.6
+ entrypoint: ["/bin/bash"]
+ before_script:
+ - bundle install
test:
script:
@@ -321,28 +320,26 @@ Before the new extended Docker configuration options, you would need to:
- Create your own image based on the `super/sql:latest` image.
- Add the default command.
-- Use the image in the job's configuration:
+- Use the image in the job's configuration.
- ```dockerfile
- # my-super-sql:latest image's Dockerfile
+ - `my-super-sql:latest` image's Dockerfile:
- FROM super/sql:latest
- CMD ["/usr/bin/super-sql", "run"]
- ```
+ ```dockerfile
+ FROM super/sql:latest
+ CMD ["/usr/bin/super-sql", "run"]
+ ```
- ```yaml
- # .gitlab-ci.yml
+ - In the job in the `.gitlab-ci.yml`:
- services:
- - my-super-sql:latest
- ```
+ ```yaml
+ services:
+ - my-super-sql:latest
+ ```
After the new extended Docker configuration options, you can
set a `command` in the `.gitlab-ci.yml` file instead:
```yaml
-# .gitlab-ci.yml
-
services:
- name: super/sql:latest
command: ["/usr/bin/super-sql", "run"]