Split .gitlab-ci.yml for better re-use
As a developer, maintaining a fork of the HELIPORT repository, I would like to re-use some parts of the .gitlab-ci.yml
file, so that I can use parts of it in my own GitLab CI.
Background: in Alameda we're using our own .gitlab-ci.yml
file for deployment. But some of the jobs already defined in HELIPORTS' .gitlab-ci.yml
I also want to run. With the usage of the include
and the extends
keywords (see GitLab CI Documentation) we could put important parts like tests, lints etc. into templates, which in turn can be included and extended by .gitlab-ci.yml
files.
Currently, I have to copy every change which is done in the .gitlab-ci.yml
files to our own file.
If it helps, I will provide an example which works for us.