Services


Services

Services run side-by-side with CI jobs

Services can be declared using the services keyword

Services are accessed using the image name (or an alias)

Services are available for runners with Docker/Kubernetes executor

GitLab only starts the service

No guarantee of availability


Example

Services for the whole pipeline

services:
- name: nginx:stable
job_name:
  script: curl -sv http://nginx

Services for a single job

job_name:
  services:
  - name: nginx:stable
  script: curl -sv http://nginx

Hands-On

See chapter Services