GitLab CI/CD 1 · Caching, artifacts and ordering

Start a database for tests

Run a service container beside the job.

test-job:
  services:
    - postgres:18
  variables:
    POSTGRES_PASSWORD: postgres
    DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres

Official GitLab CI/CD 1 documentation

More caching, artifacts and ordering commands

All caching, artifacts and ordering commands · GitLab CI/CD 1 cheatsheet

Was this page helpful?