fe-drone-ci/.drone.yml

41 lines
652 B
YAML
Raw Normal View History

2021-06-02 10:00:25 +00:00
kind: pipeline
type: docker
name: vue-admin
trigger:
branch: ci
steps:
2021-06-02 10:21:56 +00:00
- name: restore-modules
2021-06-02 10:19:32 +00:00
image: drillster/drone-volume-cache
volumes:
- name: modules
path: /cache
settings:
restore: true
mount:
- ./node_modules
2021-06-02 10:00:25 +00:00
- name: build
image: node:12.16.1
commands:
- yarn
- yarn build:prod
2021-06-02 10:21:56 +00:00
- name: rebuild-modules
image: drillster/drone-volume-cache
volumes:
- name: modules
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
2021-06-02 10:33:38 +00:00
- ./build:./dist
2021-06-02 10:00:25 +00:00
volumes:
- name: modules
host:
2021-06-02 10:25:03 +00:00
path: /mnt/d/ci_volumes