提交 90bc5947 作者: 王南南

更新 .gitlab-ci.yml

上级 a426fef0
流水线 #38675 已通过 于阶段
in 4 分 22 秒
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
test:
stage: test
script:
- gitbook build . public # build to public path
only:
- branches # this job will affect every branch except 'master'
except:
- master
tags:
- k8s
# the 'pages' job will deploy and build your site to the 'public' path
pages:
stage: deploy
image: registry-vpc.cn-beijing.aliyuncs.com/qianjia_public/mygitbook
script:
- gitbook install
- gitbook build . public # build to public path
artifacts:
paths:
- public
expire_in: 1 week
only:
- master
- master # this job will affect only
tags:
- k8s
- k8s
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论