40 lines
627 B
YAML
40 lines
627 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: vue-admin
|
|
|
|
|
|
trigger:
|
|
branch: ci
|
|
|
|
steps:
|
|
|
|
- name: restore-modules
|
|
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
|
|
|
|
- name: rebuild-modules
|
|
image: drillster/drone-volume-cache
|
|
volumes:
|
|
- name: modules
|
|
path: /cache
|
|
settings:
|
|
rebuild: true
|
|
mount:
|
|
- ./node_modules
|
|
|
|
volumes:
|
|
- name: modules
|
|
host:
|
|
path: /mnt/d/ci_volumes |