How do you control artifact storage growth?
BeginnerProductionMetrics, Performance and Cost
Answer
Set retention by artifact type: short for CI build outputs and PR images (7–14 days), longer for release artifacts (kept per compliance), cleanup of untagged and snapshot artifacts (Nexus cleanup policies, Artifactory retention, ECR lifecycle rules, GitHub retention-days), deduplicate through content-addressed storage, and monitor repository sizes per team.
aws ecr put-lifecycle-policy --repository-name shop/api --lifecycle-policy-text file://lifecycle.json
More on Metrics, Performance and Cost
How do you measure DORA metrics in practice?IntermediateWhat do the DORA performance levels look like, and how do you use them?IntermediateWhat are common ways DORA metrics get gamed or misread?AdvancedWhich pipeline metrics do you monitor for the CI platform itself?IntermediateHow do you cut CI cost without hurting developer speed?IntermediateHow do you use a remote build cache (Gradle, Bazel, Turborepo, Nx)?Advanced