Post

Retiring redundant image‑automation scripts in the homelab CI pipeline

Retiring redundant image‑automation scripts in the homelab CI pipeline

This push removes three legacy CI helpers—image-automation-alert.py, image-automation-promote.py, and image-automation-alert-test.py—that had become duplicates of the GitHub Action‑based workflow. The cleanup trims the CI surface area, updates the ignore file and runbook, and aligns the offline checks with the new arrangement.

Implementation: removing retired image‑automation helpers

The commit chore(ci): remove retired and duplicate image automation checks (#2375) deleted the three Python scripts and added entries to .gitignore so they will no longer be tracked. The runbook openwiki/runbooks/image-automation.md was updated with a single line noting that the retired workflow’s promotion and Discord alert helpers have also been removed. These changes are purely administrative: the scripts performed bounded alert emission and promotion validation that are now handled exclusively by the GitHub Action.

Verification: offline checks and gitignore consistency

The scripts/ci/offline-checks.sh patch strips the now‑removed image-automation-alert-test.py and harbor-images-check.py invocations, leaving the offline suite consistent with the runtime CI surface. The .gitignore update adds comment lines documenting the retired helpers, which prevents accidental re‑addition while keeping the file syntax valid. No new test jobs are introduced; the existing GitHub Action continues to provide the same coverage.

Platform engineering: implications for future CI maintenance

With the legacy helpers gone, any future modifications to image‑automation behavior should be made in the GitHub Action workflow or in the shared state file that the action reads. This centralisation reduces the number of moving parts a platform team must monitor and makes it easier to reason about alert lifecycles and promotion validation. Teams operating a similar Kubernetes GitOps homelab can apply the same pattern: deprecate inline scripts, record the deprecation in .gitignore and the runbook, and update offline checks accordingly.

This post is licensed under CC BY 4.0 by the author.