GitLab Pipeline Templates
GitLab Pipeline Templates
Section titled โGitLab Pipeline TemplatesโUse extends
, YAML anchors, or remote include
to reuse job definitions.
.node_base: image: node:20 before_script: - npm ci --no-audit --no-fund
build: extends: .node_base script: ["npm run build"]
Remote include
include: - project: 'my-group/ci-templates' file: '/node.yml' ref: main