Some checks failed
CICD Start / Sanity and Base Decision (pull_request) Failing after 12m34s
Signed-off-by: copilotcoder <copilotcoder@darkhelm.org>
22 lines
701 B
Plaintext
22 lines
701 B
Plaintext
hosts = [
|
|
"kankali.darkhelm.lan",
|
|
"zhokq.darkhelm.lan",
|
|
"urtzul.darkhelm.lan",
|
|
"pi-desktop.darkhelm.lan",
|
|
]
|
|
|
|
# Pull upstream tag, retag/push to local registry mirror, verify mirror tag.
|
|
remote_code = """
|
|
$(docker pull ghcr.io/catthehacker/ubuntu:act-latest)
|
|
$(docker tag ghcr.io/catthehacker/ubuntu:act-latest kankali.darkhelm.lan:3001/darkhelm.org/act-ubuntu:act-latest)
|
|
$(docker push kankali.darkhelm.lan:3001/darkhelm.org/act-ubuntu:act-latest)
|
|
if $(docker image inspect kankali.darkhelm.lan:3001/darkhelm.org/act-ubuntu:act-latest):
|
|
print("MIRROR_PRESENT")
|
|
else:
|
|
print("MIRROR_MISSING")
|
|
"""
|
|
|
|
for host in hosts:
|
|
print(f"\n=== {host} ===")
|
|
ssh @(host) @(remote_code)
|