Creating .gitlab-ci.yml
How GitLab CI interacts with your profile is largely controlled by the .gitlab-ci.yml file, which must be added to the root of your project. When you push code to your repository, GitLab will test whether it's there and start a pipeline with jobs for that specific commit.
The format of the file is YAML Ain't Markup Language (YAML). YAML is currently a widely used format for configuration files and is best described as a data serialization language.
We have already given you an example of a .gitlab-ci.yml file with two jobs in an earlier section. In other chapters, we used a .gitlab-ci.yml file to describe a deployment. So, what are the available possibilities of this file?
A lot of combinations are possible, but the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access