Difference between revisions of "GitLab CI include:"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
include: | include: | ||
− | - [[project]]: 'your-org/your-project' | + | - [[GitLab CI project:|project]]: 'your-org/your-project' |
file: 'path/to/your/file/to/include' | file: 'path/to/your/file/to/include' | ||
Revision as of 19:00, 3 October 2022
Contents
Examples
include: - remote: 'https://gitlab.com/awesome-project/raw/main/.before-script-template.yml' - local: '/templates/.after-script-template.yml' - template: Auto-DevOps.gitlab-ci.yml
include: - local: .gitlab/variables.yml - local: .gitlab/build.yaml - local: .gitlab/deploy.yaml
include: - project: 'your-org/your-project' file: 'path/to/your/file/to/include'
include: - project: 'your-org/your-project' ref: my-branch-name file: 'path/to/your/file/to/include'
Related
News
- Conditional includes https://about.gitlab.com/releases/2021/11/22/gitlab-14-5-released/#conditional-includes-with-exists-keyword
See also
gitlab-ci.yml
,job: | stage: | stages: | artifacts: | include: | script: | when: | only: | needs:
Advertising: