fix removal sequence
All checks were successful
Deploy Containers / Prepare (push) Successful in 4s

This commit is contained in:
2026-04-06 13:27:38 -04:00
parent bbd029cdfb
commit df7b1e169e

View File

@@ -23,12 +23,12 @@ def main():
diff = git_diff() diff = git_diff()
# containers that need special treatment # containers that need special treatment
removed_containers = [] removed_containers = [] # containers queued for removal
vpn_containers = [ vpn_containers = [ # containers that need to be recreated re: vpn
"tasks/qbittorrent.yml", "tasks/qbittorrent.yml",
"tasks/jackett.yml" "tasks/jackett.yml"
] ]
ignore_deploys_for = [ ignore_deploys_for = [ # don't auto-deploy these
"tasks/runner", "tasks/runner",
"templates/runner", "templates/runner",
"roles/docker" "roles/docker"
@@ -67,8 +67,8 @@ def main():
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}'...")
if len(task.split("/")) > 1: if "_deploy" in task:
task_name = task.split("/")[1].split(".")[0] task_name = task.split("_")[0]
else: else:
task_name = task task_name = task