Commit 7691569c authored by jinkaiqiang's avatar jinkaiqiang

docker环境线下老是出现问题,先用代码拉取

parent 4040c332
Pipeline #25147 passed with stage
in 26 seconds
...@@ -13,13 +13,14 @@ deploy_repo_path = 'ssh://git@47.110.145.204:2222/hs/deploy.git' ...@@ -13,13 +13,14 @@ deploy_repo_path = 'ssh://git@47.110.145.204:2222/hs/deploy.git'
git_path = os.path.join(temp_file_dir, 'deploy') git_path = os.path.join(temp_file_dir, 'deploy')
# 初始化git仓库 # 初始化git仓库
if not os.path.exists(os.path.join(git_path, '.git')): if not os.path.exists(os.path.join(git_path, '.git')):
repo = git.Repo.clone_from(url=deploy_repo_path, to_path=git_path) # docker环境线下老是出现问题,先用代码拉取
else: os.system(f'git clone {deploy_repo_path} {git_path}')
repo = git.Repo(git_path) # repo = git.Repo.clone_from(url=deploy_repo_path, to_path=git_path)
repo.git.pull()
repo = git.Repo(git_path)
repo.git.pull()
class FlashAppLoader(AppLoaderBase): class FlashAppLoader(AppLoaderBase):
......
Markdown is supported
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