ci/cd
continuous-integration/drone/push Build is failing Details

This commit is contained in:
clay 2022-11-03 15:10:42 +08:00
parent 1602d7f71c
commit 46bcd4e511
1 changed files with 40 additions and 0 deletions

40
.drone.yml Normal file
View File

@ -0,0 +1,40 @@
kind: pipeline
type: docker
name: credit-rating
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 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