Some checks failed
CICD Start / Sanity and Base Decision (pull_request) Failing after 12m34s
Signed-off-by: copilotcoder <copilotcoder@darkhelm.org>
19 lines
630 B
Plaintext
19 lines
630 B
Plaintext
hosts = [
|
|
"kankali.darkhelm.lan",
|
|
"zhokq.darkhelm.lan",
|
|
"urtzul.darkhelm.lan",
|
|
"pi-desktop.darkhelm.lan",
|
|
]
|
|
|
|
# Check both upstream and mirrored tags on each runner host.
|
|
remote_script = """
|
|
r = !(docker image inspect ghcr.io/catthehacker/ubuntu:act-latest > /dev/null 2> /dev/null)
|
|
print("GHCR:present" if r.returncode == 0 else "GHCR:missing")
|
|
r = !(docker image inspect kankali.darkhelm.lan:3001/darkhelm.org/act-ubuntu:act-latest > /dev/null 2> /dev/null)
|
|
print("MIRROR:present" if r.returncode == 0 else "MIRROR:missing")
|
|
"""
|
|
|
|
for host in hosts:
|
|
print(f"\n=== {host} ===")
|
|
ssh @(host) @(remote_script)
|