@winner-fed/winner-deploy 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winner-fed/winner-deploy",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Generate a publication deployed by the See platform",
5
5
  "keywords": [
6
6
  "winner",
@@ -41,7 +41,7 @@ exports.genDockerPackage = function genDockerPackage (seePackageName, options, h
41
41
 
42
42
  // 如果项目根目录下已经存在 Dockerfile,则不进行重新生成
43
43
  if (!fs.pathExistsSync(path.resolve(process.cwd(), `docker/Dockerfile`))) {
44
- fs.outputFileSync(path.resolve(process.cwd(), `docker/Dockerfile`), genDockerfile({ name }));
44
+ fs.outputFileSync(path.resolve(process.cwd(), `docker/Dockerfile`), genDockerfile({ name, type }));
45
45
  }
46
46
 
47
47
  // 缺少 scripts 目录会导致 SEE 平台上传发布物报错
@@ -4,7 +4,7 @@
4
4
  # 拷贝前端工程文件到运行目录
5
5
  if [ "{{type}}" = "subsystem" ]; then
6
6
  # 子系统执行逻辑
7
- # 删除 tmp 的文件
7
+ # 程序执行的当前路径,除了tmp文件夹,别的都删除,然后将 tmp/source 的所有文件及文件夹都拷贝到 workspace 目录下
8
8
  ls -I tmp | xargs rm -rf
9
9
  \cp -rf tmp/source/* ${workspace}/../
10
10
  else
@@ -1,8 +1,10 @@
1
1
  # Dockerfile用于生成应用镜像,非特殊情况请勿修改
2
2
  FROM package.hundsun.com/public-docker-local/freestyle/hswealth/nginx:1.18.0-alpine-see
3
-
3
+ <% if (type === 'bizframe') { %>
4
+ COPY dist /usr/share/nginx/html/${ name }
5
+ <% } else { %>
4
6
  COPY dist /usr/share/nginx/html/hui-pro
5
-
7
+ <% } %>
6
8
  RUN chmod +x /etc/nginx/* && \
7
9
  chmod +x /usr/share/nginx/html/* &&\
8
10
  chmod +x /usr/local/bin/*