Adding the possibility to pull changes from git before updating images
This commit is contained in:
6
main.py
6
main.py
@@ -7,6 +7,12 @@ import config
|
||||
|
||||
DOCKER_COMPOSE_PATH = config.portainer_compose_dir + '/{}/docker-compose.yml'
|
||||
BASH_COMPANION_SCRIPT = os.getcwd() + '/docker_updater.sh'
|
||||
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}")
|
||||
|
||||
|
||||
def update_stack(stack):
|
||||
|
||||
Reference in New Issue
Block a user