From 46bcd4e511e405b260ae91be61a382c5aa275865 Mon Sep 17 00:00:00 2001 From: clay <20932067@zju.edu.cn> Date: Thu, 3 Nov 2022 15:10:42 +0800 Subject: [PATCH] ci/cd --- .drone.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..23f0787 --- /dev/null +++ b/.drone.yml @@ -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