This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user