We currently store our CI configs in a separate project and use the settings in the UI to link them.
For various reasons we want to move to using a .gitlab-ci.yml in the repo itself that includes these files from the cicd repo.
My current attempt is (note that the existing
company-backend/.gitlab-ci.yml works perfectly):
include: - project: minigrid/cicd ref: 'chore/run-quality-separately' file: - 'company-backend/.gitlab-ci.yml' # Added this after error described below - these are defined in the included config stages: - TestAndBuild - AdditionalLinting - Deploy - Validate - ApproveQA - Live - PostJobs
Putting this into CI Lint is giving the following error:
I added the
stages explicitly (as above) - which I wasn’t expecting to need to do since they are defined in the linked file - but still no luck.
My understanding from the docs is that the entire linked file is essentially merged with the .gitlab-ci.yml to create the yaml that runs. What am I missing?
I’ve omitted the included company-backend/.gitlab-ci.yml file since a) it works already and has been unchanged b) is 350+ lines