From 4d5922ca58dc7550e32fbe2af00a53f749513249 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Fri, 7 Nov 2025 02:04:25 -0500 Subject: [PATCH] don't run deployment if task was removed --- scripts/deploy_containers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/deploy_containers.py b/scripts/deploy_containers.py index be97eac..217703d 100644 --- a/scripts/deploy_containers.py +++ b/scripts/deploy_containers.py @@ -53,6 +53,7 @@ def main(): deployed = [] failed = [] + removed = [] for file in diff: # separating these for now because roles will typically # have a bunch of other things tied to them @@ -69,8 +70,10 @@ def main(): subprocess.run("/usr/bin/docker container prune -f", shell=True) print(f"Cleaned up container {task_name}") + removed.append(task_name) - if "host_vars" not in file: + + if "host_vars" not in file and task_name not in removed: # deploy the task, regardless of its status if "roles/" not in file: if task_name not in deployed: