Verify image healthcheck before publishing from Gitea
Build and Publish TVJ EPG Image / build (push) Failing after 27s

This commit is contained in:
Lyncoln
2026-09-10 15:49:22 -04:00
parent 8529fca032
commit 59f5a2614d
3 changed files with 36 additions and 17 deletions
+10
View File
@@ -0,0 +1,10 @@
"""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")