fix weird formatting in actions
All checks were successful
Deploy Containers / Prepare (push) Successful in 5s
All checks were successful
Deploy Containers / Prepare (push) Successful in 5s
This commit is contained in:
@@ -76,7 +76,6 @@ def main():
|
|||||||
deployed = []
|
deployed = []
|
||||||
failed = []
|
failed = []
|
||||||
|
|
||||||
print("\n")
|
|
||||||
for task in new_diff:
|
for task in new_diff:
|
||||||
deployment = deploy(tag=task)
|
deployment = deploy(tag=task)
|
||||||
|
|
||||||
@@ -84,9 +83,7 @@ def main():
|
|||||||
failed.append(task)
|
failed.append(task)
|
||||||
else:
|
else:
|
||||||
deployed.append(task)
|
deployed.append(task)
|
||||||
print("\n")
|
|
||||||
|
|
||||||
print("\n")
|
|
||||||
for task in removed_containers:
|
for task in removed_containers:
|
||||||
print(f"[MAIN] Attempting to remove containers related to '{task}'...")
|
print(f"[MAIN] Attempting to remove containers related to '{task}'...")
|
||||||
task_name = task.split("/")[1].split(".")[0]
|
task_name = task.split("/")[1].split(".")[0]
|
||||||
@@ -102,7 +99,6 @@ def main():
|
|||||||
subprocess.run(f"/usr/bin/docker container rm {docker_container_id}", shell=True, stdout=subprocess.DEVNULL)
|
subprocess.run(f"/usr/bin/docker container rm {docker_container_id}", shell=True, stdout=subprocess.DEVNULL)
|
||||||
subprocess.run("/usr/bin/docker image prune -f", shell=True, stdout=subprocess.DEVNULL)
|
subprocess.run("/usr/bin/docker image prune -f", shell=True, stdout=subprocess.DEVNULL)
|
||||||
subprocess.run("/usr/bin/docker container prune -f", shell=True, stdout=subprocess.DEVNULL)
|
subprocess.run("/usr/bin/docker container prune -f", shell=True, stdout=subprocess.DEVNULL)
|
||||||
print("\n")
|
|
||||||
|
|
||||||
if len(failed) <= 0 and len(deployed) > 0:
|
if len(failed) <= 0 and len(deployed) > 0:
|
||||||
print("\n---------------------")
|
print("\n---------------------")
|
||||||
|
|||||||
Reference in New Issue
Block a user