Commit 63ed9365 authored by 吕祺's avatar 吕祺 ⛹🏽

quicker

parent 9a208870
...@@ -7,7 +7,7 @@ cache: ...@@ -7,7 +7,7 @@ cache:
- out - out
- node_modules/ - node_modules/
compile_articles: compile_articles_and_preview:
stage: build stage: build
# when: manual # when: manual
environment: environment:
...@@ -18,6 +18,12 @@ compile_articles: ...@@ -18,6 +18,12 @@ compile_articles:
- yarn - yarn
- node utils/articleAggregate.js - node utils/articleAggregate.js
- sh utils/commit.sh - sh utils/commit.sh
- npm run export
- rm -rf /home/gitlab-runner/deploy/cms/official/out #/home/gitlab-runner/deploy/official/out/
- cp -r out /home/gitlab-runner/deploy/cms/official/ #deploy/official
# - rm -r /home/gitlab-runner/deploy/official/out
# - cp -r out/ /home/gitlab-runner/deploy/official/
- echo "预览网站:http://preview.gaorongvc.cn:9945/
# compress_images: # compress_images:
# stage: build # stage: build
...@@ -48,26 +54,26 @@ deploy: ...@@ -48,26 +54,26 @@ deploy:
- /home/gitlab-runner/sh/ossutil64 cp -f out oss://gaorong-web/ -r - /home/gitlab-runner/sh/ossutil64 cp -f out oss://gaorong-web/ -r
preview: # preview:
stage: deploy # stage: deploy
# when: manual # # when: manual
environment: # environment:
name: preview # name: preview
# artifacts: # # artifacts:
# name: 'package' # # name: 'package'
# untracked: true # # untracked: true
# expire_in: 12 hours # # expire_in: 12 hours
# paths: # # paths:
# - out # # - out
script: # script:
- yarn # - yarn
# - sh utils/imageCompress.sh # # - sh utils/imageCompress.sh
- npm run export # - npm run export
- rm -rf /home/gitlab-runner/deploy/cms/official/out #/home/gitlab-runner/deploy/official/out/ # - rm -rf /home/gitlab-runner/deploy/cms/official/out #/home/gitlab-runner/deploy/official/out/
- cp -r out /home/gitlab-runner/deploy/cms/official/ #deploy/official # - cp -r out /home/gitlab-runner/deploy/cms/official/ #deploy/official
# - rm -r /home/gitlab-runner/deploy/official/out # # - rm -r /home/gitlab-runner/deploy/official/out
# - cp -r out/ /home/gitlab-runner/deploy/official/ # # - cp -r out/ /home/gitlab-runner/deploy/official/
- echo "预览网站:http://preview.gaorongvc.cn:9945/" # - echo "预览网站:http://preview.gaorongvc.cn:9945/"
......
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