Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
official
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
吕祺
official
Commits
63ed9365
Commit
63ed9365
authored
Jul 15, 2021
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quicker
parent
9a208870
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
21 deletions
+27
-21
.gitlab-ci.yml
.gitlab-ci.yml
+27
-21
No files found.
.gitlab-ci.yml
View file @
63ed9365
...
...
@@ -7,7 +7,7 @@ cache:
-
out
-
node_modules/
compile_articles
:
compile_articles
_and_preview
:
stage
:
build
# when: manual
environment
:
...
...
@@ -18,6 +18,12 @@ compile_articles:
-
yarn
-
node utils/articleAggregate.js
-
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:
# stage: build
...
...
@@ -48,26 +54,26 @@ deploy:
-
/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 -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/"
#
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 -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/"
...
...
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