Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adrián Rošinec
documentation
Commits
d271526f
Verified
Commit
d271526f
authored
6 years ago
by
Boris Parak
Browse files
Options
Downloads
Plain Diff
Merge branch 'Feature-Add-Gitlab-CI'
parents
f277b07a
37bd90ee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-0
24 additions, 0 deletions
.gitlab-ci.yml
with
24 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
24
−
0
View file @
d271526f
# requiring the environment of NodeJS 10
image
:
node:10
# 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
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment