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