GitLab CI/CD

GitLab CI is the part of GitLab that enables automation for CI/CD.

Leave out ref on include project configurations

The typical include in a gitlab-ci.yml file might look something like this:

include:
  - project: 'my-org/templates'
    ref: main
    file: '/common-functions.yml'

However, if you leave out ref then the default branch (typically main or master).

Broader Topics Related to GitLab CI/CD Tips

GitLab CI/CD

Tips for working in GitLab CI/CD

GitLab CI/CD Tips Knowledge Graph