更新 .drone.yml
This commit is contained in:
parent
5d801653ab
commit
a107db867c
22
.drone.yml
22
.drone.yml
|
|
@ -1,3 +1,23 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-and-deploy
|
name: build-and-deploy
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: node_modules
|
||||||
|
host:
|
||||||
|
path: /var/lib/drone/node_modules
|
||||||
|
- name: vuepress_output
|
||||||
|
host:
|
||||||
|
path: /var/lib/drone/vuepress_output
|
||||||
|
steps:
|
||||||
|
- 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
|
||||||
|
- npm run docs:build
|
||||||
Loading…
Reference in New Issue