Interview Prep/CI/CD/GitHub Actions and GitLab CI in Production

How do you handle monorepo pipelines in GitLab efficiently?

IntermediateProductionGitHub Actions and GitLab CI in Production
Answer

A root .gitlab-ci.yml with trigger jobs per service using rules:changes and trigger:include pointing at each service's own CI file (child pipelines), with strategy: depend so the parent reflects the result. Shared code changes trigger all dependents explicitly. Use changes: compare_to: refs/heads/main for accurate change detection in MR pipelines and keep each child pipeline small and independently cacheable.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitHub Actions and GitLab CI in Production