Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhouzihaoDoc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouzihao
zhouzihaoDoc
Commits
f345cb5b
Commit
f345cb5b
authored
Mar 17, 2020
by
zhouzihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新.gitlab-ci.yaml
parent
4c50713c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
25 deletions
+52
-25
.gitlab-ci.yaml
.gitlab-ci.yaml
+52
-25
No files found.
.gitlab-ci.yaml
View file @
f345cb5b
# requiring the environment of NodeJS 6
image
:
node:6
#
#
requiring the environment of NodeJS 6
#
image: node:6
# add 'node_modules' to cache for speeding up builds
cache
:
paths
:
-
node_modules/
# Node modules and dependencies
#
#
add 'node_modules' to cache for speeding up builds
#
cache:
#
paths:
#
- node_modules/ # Node modules and dependencies
before_script
:
-
npm install gitbook-cli -g
# install gitbook
-
gitbook fetch 3.2.3
# fetch final stable version
-
gitbook install
# add any requested plugins in book.json
# before_script:
# - npm install gitbook-cli -g # install gitbook
# - gitbook fetch 3.2.3 # fetch final stable version
# - gitbook install # add any requested plugins in book.json
# test:
# stage: test
# script:
# - gitbook build . public # build to public path
# only:
# - branches # this job will affect every branch except 'master'
# except:
# - master
# # the 'pages' job will deploy and build your site to the 'public' path
# pages:
# stage: deploy
# script:
# - gitbook build . public # build to public path
# artifacts:
# paths:
# - public
# expire_in: 1 week
# only:
# - master # this job will affect only the 'master' branch
stages
:
-
test
-
build
-
deploy
test
:
stage
:
test
script
:
-
gitbook build . public
# build to public path
only
:
-
branches
# this job will affect every branch except 'master'
except
:
-
master
# the 'pages' job will deploy and build your site to the 'public' path
pages
:
script
:
echo "Running tests"
build
:
stage
:
build
script
:
echo "Building the app"
deploy_staging
:
stage
:
deploy
script
:
-
gitbook build . public
# build to public path
artifacts
:
paths
:
-
public
expire_in
:
1 week
-
echo "Deploy to staging server"
environment
:
name
:
staging
url
:
https://staging.example.com
only
:
-
master
# this job will affect only the 'master' branch
-
master
————————————————
版权声明:本文为CSDN博主「苍穹尘」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/lizhiqiang1217/article/details/88803783
\ No newline at end of file
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