Automation · Container Automation
Registry Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=5787
Answer
Registry automation pushes, tags, scans and cleans up images in registries like Docker Hub, GHCR, Harbor or ECR from CI pipelines, with retention policies for old tags.
Remember
- Tag images consistently (version, commit).
- Retention policies remove old tags.
- Scan on push.
First checks
crane ls <registry>/<repo>— list tagscrane digest <image>— digest- Registry retention/cleanup policies — storage
Verify in this order
build → push → promote by digest → cleanup
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5787