ci/cd
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
1602d7f71c
commit
46bcd4e511
|
|
@ -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
|
||||
Loading…
Reference in New Issue