Browse Source

Merge pull request #722 from meolu/2.0/bugfix/project-name

walle 2.1 - fix: 延续 1.x 版本的 {VERSION} 环境变量,将 2.0 版本的 ${CURRENT_RELEAS…
walle-web.io 6 years ago
parent
commit
69497e0f3d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      walle/service/deployer.py

+ 2 - 1
walle/service/deployer.py

@@ -81,7 +81,8 @@ class Deployer:
 
             self.custom_global_env = {
                 'WEBROOT': str(self.project_info['target_root']),
-                'CURRENT_RELEASE': str(self.release_version),
+                'VERSION': str(self.release_version),
+                'CURRENT_RELEASE': str(self.project_info['target_releases']),
                 'BRANCH': str(self.taskMdl.get('branch')),
                 'TAG': str(self.taskMdl.get('tag')),
                 'COMMIT_ID': str(self.taskMdl.get('commit_id')),