don't run deployment if task was removed
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:
@@ -53,6 +53,7 @@ def main():
|
|||||||
|
|
||||||
deployed = []
|
deployed = []
|
||||||
failed = []
|
failed = []
|
||||||
|
removed = []
|
||||||
for file in diff:
|
for file in diff:
|
||||||
# separating these for now because roles will typically
|
# separating these for now because roles will typically
|
||||||
# have a bunch of other things tied to them
|
# 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)
|
subprocess.run("/usr/bin/docker container prune -f", shell=True)
|
||||||
|
|
||||||
print(f"Cleaned up container {task_name}")
|
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
|
# deploy the task, regardless of its status
|
||||||
if "roles/" not in file:
|
if "roles/" not in file:
|
||||||
if task_name not in deployed:
|
if task_name not in deployed:
|
||||||
|
|||||||
Reference in New Issue
Block a user