|
|
@@ -24,17 +24,23 @@ steps:
|
|
24
|
24
|
image: node
|
|
25
|
25
|
commands:
|
|
26
|
26
|
- cd ./vue-theme
|
|
|
27
|
+ - rm -Rf ./build/*
|
|
27
|
28
|
- npm run build
|
|
|
29
|
+ - ls ./build
|
|
28
|
30
|
volumes:
|
|
29
|
31
|
# Link node_modules cache from host filesystem into container at the expected location
|
|
30
|
32
|
- name: node_cache
|
|
31
|
33
|
path: /drone/src/vue-theme/node_modules
|
|
|
34
|
+ - name: build
|
|
|
35
|
+ path: /drone/src/vue-theme/build
|
|
32
|
36
|
|
|
33
|
37
|
volumes:
|
|
34
|
38
|
- name: node_cache
|
|
35
|
39
|
host:
|
|
36
|
40
|
path: /tmp/cache/drone/node_modules
|
|
37
|
|
-
|
|
|
41
|
+ - name: build
|
|
|
42
|
+ host:
|
|
|
43
|
+ path: /tmp/cache/drone/build
|
|
38
|
44
|
---
|
|
39
|
45
|
########################
|
|
40
|
46
|
# Deploy to Production #
|
|
|
@@ -55,14 +61,16 @@ steps:
|
|
55
|
61
|
- name: test
|
|
56
|
62
|
image: node
|
|
57
|
63
|
commands:
|
|
58
|
|
- - pwd
|
|
59
|
|
- - ls ./vue-theme/node_modules
|
|
|
64
|
+ - ls ./vue-theme/build
|
|
60
|
65
|
volumes:
|
|
61
|
66
|
# Link node_modules cache from host filesystem into container at the expected location
|
|
62
|
|
- - name: node_cache
|
|
63
|
|
- path: /drone/src/vue-theme/node_modules
|
|
|
67
|
+ - name: build
|
|
|
68
|
+ path: /drone/src/vue-theme/build
|
|
64
|
69
|
|
|
65
|
70
|
volumes:
|
|
66
|
71
|
- name: node_cache
|
|
67
|
72
|
host:
|
|
68
|
|
- path: /tmp/cache/drone/node_modules
|
|
|
73
|
+ path: /tmp/cache/drone/node_modules
|
|
|
74
|
+ - name: build
|
|
|
75
|
+ host:
|
|
|
76
|
+ path: /tmp/cache/drone/build
|