CI/CD Pipeline Architecture: A Decision Framework for Engineering Leaders

How to decide on CI/CD architecture: managed vs self-hosted platforms, golden paths for teams, supply-chain security, DORA metrics and how releases move through environments.

By VVVHQ Team ·

CI/CD tooling often gets chosen team by team, and a few years later the company runs four CI systems, each with its own secrets, runners and security gaps. The pipeline is how every change reaches production, so its architecture shapes delivery speed, reliability, security and a growing line on the cloud bill. DORA's research has tied software delivery performance to organizational performance for years, and the pipeline sets many of the limits on delivery.

This framework covers the decisions an engineering leader should make centrally, and the ones teams can make for themselves.

The platforms

Managed

GitHub Actions is the usual choice for companies already on GitHub. It sits next to the code, has a large marketplace of actions, and its hosted runners need no maintenance. The trade-offs are tighter coupling to GitHub and less control over the build machines, unless you add self-hosted runners.

GitLab CI combines source control, CI/CD, security scanning and deployment in one product, which suits companies that want a single toolchain. Moving away later is hard, and self-managed GitLab takes real operational work.

Hybrid and self-hosted

Buildkite runs the control plane as a service and the build agents on your own infrastructure. That fits strict data residency or compliance requirements without running the whole CI system yourself.

Dagger defines pipelines as code in Go, Python or TypeScript and runs each step in a container, so the same pipeline runs on a laptop and on any CI platform. Platform teams use it to make pipelines portable and testable.

Tekton fits companies already deep in Kubernetes. Jenkins still runs a great many pipelines and can do almost anything, but at scale it needs steady work on plugins, upgrades and controllers.

| Factor | Managed (GitHub, GitLab) | Self-hosted or hybrid (Buildkite, Tekton, Jenkins) | |---|---|---| | Time to first pipeline | Days | Weeks to months | | Operational work | Low | Moderate to high | | Customization | Within the platform's model | Extensive | | Cost model | Per minute | Your own infrastructure | | Control over where builds run | Limited, unless you add self-hosted runners | Full |

A managed platform with self-hosted runners for the jobs that need them covers most companies. Full self-hosting pays off when custom workflows, data residency or build volume make the per-minute model the worse deal, and that is a calculation to run on your own usage.

Golden paths and self-service

The choice of tool matters less than what application teams have to write. A team shipping a new containerized service should pick a template that already builds, tests, scans and deploys that kind of workload the company's way, without writing pipeline YAML from scratch. These templates, often called golden paths, give the platform team a small surface to maintain and keep standards consistent without a review board. In GitHub Actions they are usually reusable workflows, called from a short file in each repository.

The next step is self-service. A team states the language, the deployment target and the compliance tier, and the platform generates a pipeline that meets the standards. Pipeline quality then grows without the platform team growing at the same rate.

Pipeline security

Attacks on build systems and dependencies have made the pipeline a security boundary in its own right.

SLSA (Supply-chain Levels for Software Artifacts) gives provenance levels to aim for. In SLSA 1.0, Build Level 2 means builds run on a hosted build platform that generates and signs provenance. Build Level 3 adds a hardened platform, where one build cannot influence another and build steps cannot reach the signing keys. GitHub's artifact attestations reach Level 2 as they come, and Level 3 when the build runs in a reusable workflow.

Sign container images with Sigstore's cosign, which needs no PKI of your own, and verify the signatures at deploy time, for example with an admission policy in Kubernetes.

Generate an SBOM in every pipeline. US federal buyers have asked for them since the 2021 executive order on cybersecurity, and the EU Cyber Resilience Act requires manufacturers to document their components, SBOM included, once its main obligations apply in December 2027.

Keep secrets out of pipeline configuration. Use the CI platform's secret store as a minimum, a dedicated manager such as HashiCorp Vault or AWS Secrets Manager for production credentials, and OIDC federation to the cloud provider so pipelines get short-lived credentials instead of stored keys. The pipelines we build deploy into AWS with no long-lived access keys.

Make self-hosted runners ephemeral: one job per runner, then the runner is destroyed, so nothing carries over between jobs. GitHub supports this with ephemeral runners and Actions Runner Controller on Kubernetes, and Buildkite supports it too.

Measuring with DORA metrics

DORA measures software delivery with deployment frequency, change lead time, change failure rate and failed deployment recovery time (formerly mean time to recovery), and its recent reports add rework rate. The pipeline affects each of them:

  • Deployment frequency is capped by how long the pipeline takes. Set a target for the critical path and treat a slower pipeline as a defect.
  • Lead time includes every minute of pipeline execution, so parallel tests and caching show up here directly.
  • Change failure rate falls when the pipeline enforces automated tests, security scans and progressive rollout.
  • Recovery time depends on rollback. If a rollback needs manual steps, recovery can be no faster than the person doing them.

Promoting through environments

Build each artifact once and promote that same artifact from development to staging to production, with automated gates between the stages.

Canary releases send a small share of production traffic to the new version and roll back automatically if the error rate or latency crosses a threshold. They catch problems that staging misses because staging has no production traffic. Argo Rollouts and Flagger automate this on Kubernetes.

Blue-green deployments keep two production environments and switch traffic between them in one step. They cost more to run and give an immediate way back. Canary uses fewer resources, and blue-green gives the cleaner rollback.

How a release is triggered matters as much as the stages. For a multi-tenant IoT SaaS with three product lines, we moved production deployment from branch-triggered to Git tag-based releases behind branch protection, and gave every service, cronjob and shared library its own Helm chart. The largest single piece of work was splitting one shared Helm chart into an independent release per service, so a change to one service no longer ships with all the others.

What CI/CD costs

Runner minutes grow with the engineering team. Hosted Linux minutes are cheap, while macOS and larger runners cost several times more per minute. GitHub cut hosted runner prices by up to 39% on 1 January 2026, depending on machine type, so cost models built on older price lists overstate the bill. Self-hosted runners move the cost onto your own infrastructure, where Spot instances and autoscaling runner pools can lower it further, in exchange for operating them.

Caching dependencies, build outputs and Docker layers is usually the largest saving in money and in waiting time. Parallel jobs use more total minutes and shorten the wait, and the shorter wait is usually worth more than the extra minutes.

The decisions in order

  1. Pick one platform for the company, managed with self-hosted runners where needed, and move teams onto it over time.
  2. Build golden paths for the most common workloads before polishing anything else.
  3. Make security the default in every template: signed artifacts, SBOMs, OIDC credentials and ephemeral runners.
  4. Instrument the pipelines for DORA metrics and review them with the teams.
  5. Treat pipeline duration as a cost every engineer pays every day.
  6. Add canary or blue-green releases for the services where a bad deploy hurts most.

For a regulated medical-device company we were the DevOps function for four and a half years, with CI/CD for more than 25 repositories and 10+ environments across 5+ AWS accounts and 3 regions, all from one Terraform codebase. Tell us how your pipelines grew and we will say what we would consolidate first.

Tags: ci/cd, devops pipeline, github actions, platform engineering, software delivery