Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
C
cmscenter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吕祺
cmscenter
Commits
fbd66cab
Commit
fbd66cab
authored
Jul 09, 2021
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy
parent
b722c811
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
33 deletions
+30
-33
.gitlab-ci.yml
.gitlab-ci.yml
+27
-31
config.yml
ronghui/admin/config.yml
+3
-2
index.html
ronghui/admin/index.html
+0
-0
netlify-cms.js
ronghui/admin/netlify-cms.js
+0
-0
No files found.
.gitlab-ci.yml
View file @
fbd66cab
#
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
...
...
admin/config.yml
→
ronghui/
admin/config.yml
View file @
fbd66cab
...
...
@@ -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"
...
...
admin/index.html
→
ronghui/
admin/index.html
View file @
fbd66cab
File moved
admin/netlify-cms.js
→
ronghui/
admin/netlify-cms.js
View file @
fbd66cab
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment