更新 .drone.yml
This commit is contained in:
parent
1dfc6adc1f
commit
72072d9ec5
12
.drone.yml
12
.drone.yml
|
|
@ -1,11 +1,14 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: run-vuepress
|
||||
name: build-vuepress
|
||||
|
||||
volumes:
|
||||
- name: node_modules
|
||||
host:
|
||||
path: /var/lib/drone/node_modules
|
||||
- name: vuepress_output
|
||||
host:
|
||||
path: /var/lib/drone/vuepress_output
|
||||
|
||||
steps:
|
||||
- name: install-dependencies
|
||||
|
|
@ -18,12 +21,15 @@ steps:
|
|||
- ls -alt
|
||||
- npm config set registry https://registry.npm.taobao.org
|
||||
- npm install
|
||||
- name: run-vuepress
|
||||
|
||||
- name: build-vuepress
|
||||
image: node:20.16.0
|
||||
volumes:
|
||||
- name: node_modules
|
||||
path: /drone/src/node_modules
|
||||
- name: vuepress_output
|
||||
path: /drone/src/docs/.vuepress/dist
|
||||
commands:
|
||||
- cd /drone/src
|
||||
- npm install -g vuepress
|
||||
- npm run docs:dev
|
||||
- npm run build
|
||||
Loading…
Reference in New Issue