Commit 299fa6a0 authored by kaiyou's avatar kaiyou
Browse files

Support restarting and recloning the config repo

parent 4ec4d985
Pipeline #755 passed with stage
in 51 seconds
......@@ -29,7 +29,7 @@ def load():
config_glob = None
if "AMONIT_CONFIG_REPO" in os.environ:
config_repo = os.environ["AMONIT_CONFIG_REPO"]
result = os.system("git clone {} /tmp/repo".format(config_repo))
result = os.system("rm -rf /tmp/repo ; git clone {} /tmp/repo".format(config_repo))
config_glob = "/tmp/repo/*.yaml" if result == 0 else None
if "AMONIT_CONFIG" in os.environ:
config_glob = os.environ["AMONIT_CONFIG"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment