GitlabCI - Difference between include local and template

Viewed 144

There is an example like that in their doc:

include:
  - template: defaults.gitlab-ci.yml
  - local: unit-tests.gitlab-ci.yml
  - local: smoke-tests.gitlab-ci.yml

What is the difference between local and template ?

1 Answers

From the documentation :

So they don't have the same goal, local is used to include some files from the current repository and template is used to include some Gitlab templates.

Related