Commit fbd66cab authored by 吕祺's avatar 吕祺 ⛹🏽

deploy

parent b722c811
# stages:
# - build
# - deploy
stages:
- build
# - deploy
# cache:
# paths:
......@@ -19,16 +19,16 @@
# - node utils/articleAggregate.js
# - sh utils/commit.sh
# # 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,24 +48,20 @@
# - /home/gitlab-runner/sh/ossutil64 cp -f out oss://gaorong-web/ -r
# preview:
# stage: deploy
# # when: manual
# environment:
# name: preview
# # artifacts:
# # name: 'package'
# # untracked: true
# # expire_in: 12 hours
# # paths:
# # - out
# script:
# - yarn
# # - sh utils/imageCompress.sh
# - npm run export
# - rm -r /home/gitlab-runner/deploy/official/out
# - cp -r out/ /home/gitlab-runner/deploy/official/
# - echo "预览网站:http://preview.gaorongvc.cn:9945/"
preview:
stage: build
# when: manual
environment:
name: preview
# artifacts:
# name: 'package'
# untracked: true
# expire_in: 12 hours
# paths:
# - out
script:
- rm -r /home/gitlab-runner/deploy/cmscenter/ronghui
- cp -r . /home/gitlab-runner/deploy/cmscenter/ronghui
......
......@@ -3,11 +3,12 @@ backend:
branch: master
repo: lq/touhoucms
auth_type: implicit
app_id: 237fd675579e3907ba8a0e340714f14dbbf7d362eb3256e0cabc21fb6a2114d0
app_id: 25e7dca1513e953f83551bd12693295d2aecbed160b7072b2327ff601bc73a8d
# secret e86445cbae7d5dcf262dbf4128c53003d4b1242e8c97d10fa08f28a38a21a924
api_root: https://git.gaorongvc.cn/api/v4
base_url: https://git.gaorongvc.cn
authENdpoint: oauth/authorize
media_folder: media
media_folder: media/ronghui
collections:
- name: "newsPage"
label: "newsPage"
......
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