This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -2,12 +2,10 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: vue-admin
|
name: vue-admin
|
||||||
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch: ci
|
branch: ci
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: restore-modules
|
- name: restore-modules
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
volumes:
|
volumes:
|
||||||
@@ -17,7 +15,8 @@ steps:
|
|||||||
restore: true
|
restore: true
|
||||||
mount:
|
mount:
|
||||||
- ./node_modules
|
- ./node_modules
|
||||||
|
- ./yarn.lock
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: node:12.16.1
|
image: node:12.16.1
|
||||||
commands:
|
commands:
|
||||||
@@ -36,9 +35,10 @@ steps:
|
|||||||
rebuild: true
|
rebuild: true
|
||||||
mount:
|
mount:
|
||||||
- ./node_modules
|
- ./node_modules
|
||||||
- ../dist
|
- ./dist
|
||||||
|
- ./yarn.lock
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: modules
|
- name: modules
|
||||||
host:
|
host:
|
||||||
path: /mnt/d/ci_volumes
|
path: /mnt/d/ci_volumes
|
||||||
|
Reference in New Issue
Block a user