A 新增常规发布全局变量SPUG_DST_DIR #162

pull/172/head
vapao 2020-08-05 19:16:21 +08:00
parent bbac420234
commit 8a921aa70b
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ def deploy_dispatch(request, req, token):
def _ext1_deploy(req, helper, env):
extend = req.deploy.extend_obj
extras = json.loads(req.extra)
env.update(SPUG_DST_DIR=extend.dst_dir)
if extras[0] == 'branch':
tree_ish = extras[2]
env.update(SPUG_GIT_BRANCH=extras[1], SPUG_GIT_COMMIT_ID=extras[2])