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.
More on GitHub Actions and GitLab CI in Production
How do you organise reusable workflows for an organisation on GitHub?IntermediateHow do you reduce GitHub Actions minutes cost on private repos?IntermediateHow do you secure self-hosted runners?AdvancedHow do you design the GitHub Actions OIDC trust policy for AWS safely?AdvancedHow do you handle approvals and deployments across environments in GitHub Actions?IntermediateHow do you handle required checks when workflows use path filters or matrices?Advanced