GitLab CI/CD 1 · Deploy and reuse

Share job settings

Define a hidden template job, and reuse it with extends.

.node-job:
  image: node:24
  before_script:
    - npm ci

test-job:
  extends: .node-job
  script:
    - npm test

Official GitLab CI/CD 1 documentation

More deploy and reuse commands

All deploy and reuse commands · GitLab CI/CD 1 cheatsheet

Was this page helpful?