From 2d5d0687d4b08b5c6a8edafb5f8673fc5f26c3d1 Mon Sep 17 00:00:00 2001 From: 13078417792 <397201698@qq.com> Date: Wed, 2 Jun 2021 18:00:25 +0800 Subject: [PATCH] Create .drone.yml --- .drone.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..8ceca821 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,31 @@ +kind: pipeline +type: docker +name: vue-admin + + +trigger: + branch: ci + +steps: + + - name: restore + image: drillster/drone-volume-cache + volumes: + - name: modules + path: /cache + settings: + restore: true + mount: + - ./node_modules + + - name: build + image: node:12.16.1 + commands: + - yarn + - yarn build:prod + + +volumes: + - name: modules + host: + path: /mnt/d/ci_volumes/fe-ci-demo/node_modules \ No newline at end of file