41 lines
844 B
YAML
41 lines
844 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: cloud-security-wiki
|
|
steps:
|
|
- name: build-package-vue
|
|
image: node:14.20
|
|
volumes:
|
|
- name: cache
|
|
path: /drone/src/node_modules
|
|
- name: build
|
|
path: /app/build
|
|
commands:
|
|
- npm -v
|
|
- mkdir -p ./node_modules
|
|
- export NODE_MODULES_PATH=`pwd`/node_modules
|
|
- npm config set registry https://registry.npm.taobao.org
|
|
- set NODE_OPTIONS=--openssl-legacy-provider
|
|
- npm install
|
|
- npm run docs:build
|
|
- ls
|
|
- echo $NODE_MODULES_PATH
|
|
- rm -rf /app/build/dist
|
|
- cp -r dist /app/build/dist
|
|
- chmod 777 /app/build/dist
|
|
|
|
|
|
volumes:
|
|
- name: build
|
|
host:
|
|
path: /www/wwwroot/wiki
|
|
- name: cache
|
|
host:
|
|
path: /var/lib/npm/cache
|
|
|
|
#trigger:
|
|
# branch:
|
|
# - dev-java
|
|
# - dev-vue
|
|
# event:
|
|
# - push
|