Difference between revisions of "GitLab CI include:"

From wikieduonline
Jump to navigation Jump to search
Line 20: Line 20:
 
  include:
 
  include:
 
   - project: 'your-org/your-project'
 
   - project: 'your-org/your-project'
     ref: my-branch-name
+
     [[ref:]] my-branch-name
 
     file: 'path/to/your/file/to/include'
 
     file: 'path/to/your/file/to/include'
  

Revision as of 14:23, 30 August 2022


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

See also

Advertising: