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

How do you reduce GitLab pipeline duration and runner cost?

IntermediateProductionGitHub Actions and GitLab CI in Production
Answer

Use needs for DAG execution, rules:changes to skip unaffected jobs, interruptible: true with auto-cancel, shared cache with cache:key:files, GIT_DEPTH: 20 for shallow clones, GIT_STRATEGY: fetch, a registry pull-through cache, smaller job images (Alpine/slim), and sharding via parallel. Use the pipeline analytics (CI/CD analytics, job durations) to find the longest jobs.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitHub Actions and GitLab CI in Production