move reload
All checks were successful
Deploy Containers / Prepare (push) Successful in 16s

This commit is contained in:
2025-08-01 11:52:12 -04:00
parent 23e47ee612
commit 2758e3c3b2

View File

@@ -22,10 +22,6 @@ def run_deployment(tag = None):
if tag: if tag:
command = construct_ansible_command(tag=tag) command = construct_ansible_command(tag=tag)
print("Reloading Caddyfile..")
subprocess.run(construct_ansible_command(tag="caddyfile_deploy"), shell=True, stdout=subprocess.PIPE)
subprocess.run("docker exec -w /etc/caddy caddy caddy reload", shell=True)
print(f"Running deployment for {tag}..") print(f"Running deployment for {tag}..")
res = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) res = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
lines = res.stdout.decode(encoding='utf-8').split("\n") lines = res.stdout.decode(encoding='utf-8').split("\n")
@@ -52,6 +48,10 @@ def run_deployment(tag = None):
def main(): def main():
diff = git_diff() diff = git_diff()
print("Reloading Caddyfile..")
subprocess.run(construct_ansible_command(tag="caddyfile_deploy"), shell=True, stdout=subprocess.PIPE)
subprocess.run("docker exec -w /etc/caddy caddy caddy reload", shell=True)
success = True success = True
deployed = 0 deployed = 0
for file in diff: for file in diff: