fix: nz-gui 打包时 snapshot_template.html 文件使用本地临时存储,取消上传 minio
This commit is contained in:
@@ -41,11 +41,11 @@ dev_build:
|
|||||||
# 编译 上传模板
|
# 编译 上传模板
|
||||||
- npm run build:html
|
- npm run build:html
|
||||||
- mc alias set nz $MINIO_HOST $MINIO_USER $MINIO_PWD
|
- mc alias set nz $MINIO_HOST $MINIO_USER $MINIO_PWD
|
||||||
- mc cp dist/index.html nz/depends/template/snapshot_template.html
|
- mkdir -p /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template && cp dist/index.html /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template/snapshot_template.html
|
||||||
|
|
||||||
- npm run build
|
- npm run build
|
||||||
- cd /builds/nezha/nezha-fronted/nezha-fronted/dist
|
- cd /builds/nezha/nezha-fronted/nezha-fronted/dist
|
||||||
- mc cp nz/depends/template/snapshot_template.html ./snapshot_template.html
|
- cp /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template/snapshot_template.html ./snapshot_template.html
|
||||||
- rm -rf nz-gui*.zip
|
- rm -rf nz-gui*.zip
|
||||||
- export FILE_NAME=nz-gui-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA.zip
|
- export FILE_NAME=nz-gui-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA.zip
|
||||||
# 生成 git log 日志文件
|
# 生成 git log 日志文件
|
||||||
@@ -90,11 +90,11 @@ rel_build:
|
|||||||
|
|
||||||
- npm run build:html
|
- npm run build:html
|
||||||
- mc alias set nz $MINIO_HOST $MINIO_USER $MINIO_PWD
|
- mc alias set nz $MINIO_HOST $MINIO_USER $MINIO_PWD
|
||||||
- mc cp dist/index.html nz/depends/template/snapshot_template.html
|
- mkdir -p /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template && cp dist/index.html /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template/snapshot_template.html
|
||||||
|
|
||||||
- npm run build
|
- npm run build
|
||||||
- cd /builds/nezha/nezha-fronted/nezha-fronted/dist
|
- cd /builds/nezha/nezha-fronted/nezha-fronted/dist
|
||||||
- mc cp nz/depends/template/snapshot_template.html ./snapshot_template.html
|
- cp /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template/snapshot_template.html ./snapshot_template.html
|
||||||
- zip -m nz-gui*.zip ./snapshot_template.html
|
- zip -m nz-gui*.zip ./snapshot_template.html
|
||||||
- mv nz-gui*.zip nz-gui-$CI_COMMIT_SHORT_SHA.zip
|
- mv nz-gui*.zip nz-gui-$CI_COMMIT_SHORT_SHA.zip
|
||||||
- md5sum nz-gui-$CI_COMMIT_SHORT_SHA.zip > nz-gui-$CI_COMMIT_SHORT_SHA.zip.md5sum.txt
|
- md5sum nz-gui-$CI_COMMIT_SHORT_SHA.zip > nz-gui-$CI_COMMIT_SHORT_SHA.zip.md5sum.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user