From 6dd7f5bff7c3830569fa326c33e2d5767a6a3756 Mon Sep 17 00:00:00 2001 From: Gentile G Date: Tue, 3 Oct 2023 13:37:24 +0200 Subject: [PATCH] Adding logs printing --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 85ef17f..6fd1901 100644 --- a/main.py +++ b/main.py @@ -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()