keeeewl it works
This commit is contained in:
@@ -37,7 +37,7 @@ def main():
|
|||||||
continue
|
continue
|
||||||
if image["result"] and not image["result"]["has_update"]:
|
if image["result"] and not image["result"]["has_update"]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
refs.append(reference)
|
refs.append(reference)
|
||||||
|
|
||||||
print("attempting to match images to references: " + ", ".join(refs))
|
print("attempting to match images to references: " + ", ".join(refs))
|
||||||
@@ -58,8 +58,6 @@ def main():
|
|||||||
|
|
||||||
print("Attempting to clean up dangling/unassumed images")
|
print("Attempting to clean up dangling/unassumed images")
|
||||||
subprocess.run(f"docker image prune -a -f", shell=True)
|
subprocess.run(f"docker image prune -a -f", shell=True)
|
||||||
else:
|
|
||||||
print("All up to date! :)")
|
|
||||||
|
|
||||||
if DISCORD_WEBHOOK_URL:
|
if DISCORD_WEBHOOK_URL:
|
||||||
print("sending discord notification..")
|
print("sending discord notification..")
|
||||||
@@ -76,6 +74,8 @@ def main():
|
|||||||
"content-type": "application/json"
|
"content-type": "application/json"
|
||||||
}
|
}
|
||||||
requests.post(DISCORD_WEBHOOK_URL, json=body, headers=headers)
|
requests.post(DISCORD_WEBHOOK_URL, json=body, headers=headers)
|
||||||
|
else:
|
||||||
|
print("All up to date! :)")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user