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

This commit is contained in:
2026-01-10 18:15:30 -05:00
parent 8c3835288c
commit 27bf6a9caf

View File

@@ -8,9 +8,7 @@ def git_diff():
return [x for x in res.stdout.strip().split("\n") if "tasks/" in x or "roles/" in x] return [x for x in res.stdout.strip().split("\n") if "tasks/" in x or "roles/" in x]
def construct_command(tags): def construct_command(tags):
command = f"ANSIBLE_CONFIG=ansible.cfg /usr/bin/ansible-playbook main.yml --vault-password-file ~/.vault_pass.txt" command = f"ANSIBLE_CONFIG=ansible.cfg /usr/bin/ansible-playbook main.yml --tags={",".join(tags)} --vault-password-file ~/.vault_pass.txt"
command += f" --tags {",".join(tags)}"
print(command) print(command)
return command return command
@@ -62,8 +60,7 @@ def main():
new_diff.append(service_name) new_diff.append(service_name)
if len(new_diff) > 0: if len(new_diff) > 0:
print(new_diff, ",".join(new_diff)) deployed = deploy(new_diff)
deployed = deploy(",".join(new_diff))
else: else:
# success, nothing deployed # success, nothing deployed
deployed = True deployed = True