From bed9cea9a7dd82814ca1efda669c6000d79822a6 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Mon, 7 Sep 2026 14:27:44 -0400 Subject: [PATCH] further gates --- scripts/deploy_containers.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/scripts/deploy_containers.py b/scripts/deploy_containers.py index 1c50b88..913ce18 100644 --- a/scripts/deploy_containers.py +++ b/scripts/deploy_containers.py @@ -46,30 +46,32 @@ def main(): print("Task environment variable: " + os.environ.get("TASK")) if os.environ.get("TASK"): diff = [os.environ.get("TASK")] + deployable_containers = [os.environ.get("TASK")] else: diff = git_diff() + deployable_containers = [] - deployable_containers = [] removable_containers = [] - for file in diff: - if os.path.exists(os.path.join(dir_path, file)): - deployable_containers.append(file) - else: - removable_containers.append(file) + if not os.environ.get("TASK"): + for file in diff: + if os.path.exists(os.path.join(dir_path, file)): + deployable_containers.append(file) + else: + removable_containers.append(file) print(f"[MAIN] Deployable: {len(deployable_containers)}") print(f"[MAIN] Removable: {len(removable_containers)}") if len(deployable_containers) > 0: to_deploy = [] - for container in deployable_containers: - if "_deploy" not in container: + if not os.environ.get("TASK"): + for container in deployable_containers: task_name = get_normalized_task_name(container) if task_name: to_deploy.append(task_name + "_deploy") - else: - to_deploy.append(task_name) + else: + to_deploy.append(os.environ.get("TASK")) if len(to_deploy) > 0: result = deploy(to_deploy)