Adding logs printing
This commit is contained in:
5
main.py
5
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()
|
||||
|
||||
Reference in New Issue
Block a user