Create .drone.yml
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
周炽键 2021-06-02 18:00:25 +08:00
parent 33a93a12b4
commit 2d5d0687d4
1 changed files with 31 additions and 0 deletions

31
.drone.yml Normal file
View File

@ -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