Video in progress

A company has 60 Java microservices and 12 teams. How do you design the CI/CD platform for them?

I build a "golden path": shared, versioned pipeline templates and a standard Helm chart, where teams only supply parameters. The mandatory parts (tests, scanning, signing, promotion) live in the platform, the optional parts in the teams, so 60 pipelines do not turn into 60 different ones.

📖 Answer

The starting point is usually like this: every team copy-pasted its own pipeline, one has a scanner and another does not, and JDK versions are mixed. When a security requirement arrives, 60 repos have to be fixed by hand.

What I do:

  1. Templates, not copies: GitLab include or a GitHub reusable workflow, with a version: uses: platform/java-service@v4. The team repo is left with 15 lines of configuration.
  2. Layers: build/test/scan/sign/promotion are mandatory and owned by the platform. Extra steps (contract tests, performance tests) can be added by the team, but it cannot remove the mandatory ones.
  3. Build once, deploy many: one image is built, and it moves dev → stage → prod by digest only.
  4. Deploy separately: CI produces the image and the manifest update, and GitOps delivers it to the cluster.
  5. A standard runtime, the shared Helm chart: probes, PDB, resource defaults and graceful shutdown are already set up correctly.

The balance is the hardest part. If the platform is too rigid, teams route around it. If it is too loose, the standard disappears. I rely on the principle "make the right path the easier one": a team that follows the golden path gets monitoring, alerts and dashboards for free. A team that steps off supports itself.

Measuring success: how long a new service takes to reach its first prod deploy, lead time, and coverage by template version. If 20 services are stuck on v2, the migration path is bad.

Renovate works well for updating template versions automatically: it opens a PR in each repo and the team only merges.