Compare commits
3 Commits
1a481776c7
...
38f3fba33c
| Author | SHA1 | Date | |
|---|---|---|---|
| 38f3fba33c | |||
| 400d4231d0 | |||
| 59ea60576f |
10
main.py
10
main.py
@@ -12,16 +12,22 @@ REPO_UPDATER_SCRIPT = os.getcwd() + '/update_repo.sh'
|
||||
|
||||
def update_repositories():
|
||||
for repo_path in config.git_repositories:
|
||||
os.system(f"{REPO_UPDATER_SCRIPT} {repo_path}")
|
||||
ret = os.system(f"{REPO_UPDATER_SCRIPT} {repo_path}")
|
||||
if ret > 0:
|
||||
exit(ret)
|
||||
|
||||
|
||||
def update_stack(stack):
|
||||
project_name = stack['Name']
|
||||
compose_file = DOCKER_COMPOSE_PATH.format(stack['Id'])
|
||||
os.system(f"{BASH_COMPANION_SCRIPT} {project_name} {compose_file}")
|
||||
ret = os.system(f"{BASH_COMPANION_SCRIPT} {project_name} {compose_file}")
|
||||
if ret > 0:
|
||||
exit(ret)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
update_repositories()
|
||||
|
||||
headers = {
|
||||
"accept": "application/json",
|
||||
"X-API-Key": config.access_token
|
||||
|
||||
Reference in New Issue
Block a user