Enable caching in drone pipline
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9469cd3332
commit
d3855432b8
1 changed files with 14 additions and 0 deletions
14
.drone.yml
14
.drone.yml
|
@ -5,6 +5,9 @@ name: default
|
||||||
steps:
|
steps:
|
||||||
- name: build-service
|
- name: build-service
|
||||||
image: maven:3.6-jdk-11
|
image: maven:3.6-jdk-11
|
||||||
|
volumes:
|
||||||
|
- name: m2-cache
|
||||||
|
path: /root/.m2
|
||||||
environment:
|
environment:
|
||||||
NEXUS_USER:
|
NEXUS_USER:
|
||||||
from_secret: nexus_user
|
from_secret: nexus_user
|
||||||
|
@ -18,6 +21,9 @@ steps:
|
||||||
|
|
||||||
- name: build-web
|
- name: build-web
|
||||||
image: node:latest
|
image: node:latest
|
||||||
|
volumes:
|
||||||
|
- name: node-cache
|
||||||
|
path: /drone/src/web/fling/node_modules
|
||||||
environment:
|
environment:
|
||||||
NEXUS_USER:
|
NEXUS_USER:
|
||||||
from_secret: nexus_user
|
from_secret: nexus_user
|
||||||
|
@ -44,3 +50,11 @@ steps:
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: m2-cache
|
||||||
|
host:
|
||||||
|
path: /var/services/drone/cache/fling/m2
|
||||||
|
- name: node-cache
|
||||||
|
host:
|
||||||
|
path: /var/services/drone/cache/fling/node
|
||||||
|
|
Loading…
Reference in a new issue