Adding logs printing

This commit is contained in:
2023-10-03 13:37:24 +02:00
parent 335f0c6f50
commit 6dd7f5bff7

View File

@@ -19,11 +19,16 @@ def update_repositories():
def update_stack(stack):
project_name = stack['Name']
print(f"Updating stack: {project_name}")
compose_file = DOCKER_COMPOSE_PATH.format(stack['Id'])
ret = os.system(f"{BASH_COMPANION_SCRIPT} {project_name} {compose_file}")
if ret > 0:
exit(ret)
print(f"{project_name} stack updated!\n")
if __name__ == '__main__':
update_repositories()