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 ?
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 ?
From the documentation :
include:local to include a file that is in the same repository as the .gitlab-ci.yml file.include:template to include .gitlab-ci.yml templates.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.