Files
tvj-epg/scripts/verify_image_healthcheck.py
T
Lyncoln 59f5a2614d
Build and Publish TVJ EPG Image / build (push) Failing after 27s
Verify image healthcheck before publishing from Gitea
2026-09-10 15:49:22 -04:00

11 lines
402 B
Python

"""Fail publication if the built image lost its automatic healthcheck."""
import json
import sys
images = json.load(sys.stdin)
healthcheck = images[0].get("Config", {}).get("Healthcheck") or {}
expected = ["CMD", "python", "-m", "epg.healthcheck"]
if healthcheck.get("Test") != expected:
sys.exit("Image healthcheck missing or incorrect; refusing publication")
print("Image healthcheck verified")