Commit 1bb3d91c authored by 吕祺's avatar 吕祺 ⛹🏽

add compress

parent 076fecd9
......@@ -27,16 +27,16 @@ compile_articles:
- echo "cms https://cmsadmin.gaorongvc.cn/ronghui/admin"
# compress_images:
# stage: build
# # when: manual
# environment:
# name: release
# only:
# - master
# script:
# - yarn
# - sh utils/imageCompress.sh
compress_images:
stage: build
# when: manual
environment:
name: release
only:
- master
script:
- yarn
- sh utils/imageCompress.sh
deploy:
......@@ -48,7 +48,7 @@ deploy:
- master
script:
- yarn
- sh utils/imageCompress.sh
#- sh utils/imageCompress.sh
- npm run export
- node utils/toJSON.js
- rm -rf /home/gitlab-runner/deploy/cms/ronghui/out
......
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