|
|
@ -111,15 +111,15 @@ volumes: |
|
|
|
path: /var/lib/data |
|
|
|
|
|
|
|
steps: |
|
|
|
# - name: restore-cache |
|
|
|
# image: drillster/drone-volume-cache |
|
|
|
# volumes: |
|
|
|
# - name: cache |
|
|
|
# path: /cache |
|
|
|
# settings: |
|
|
|
# restore: true |
|
|
|
# mount: |
|
|
|
# - ./node_modules |
|
|
|
- name: restore-cache |
|
|
|
image: drillster/drone-volume-cache |
|
|
|
volumes: |
|
|
|
- name: cache |
|
|
|
path: /cache |
|
|
|
settings: |
|
|
|
restore: true |
|
|
|
mount: |
|
|
|
- ./node_modules |
|
|
|
|
|
|
|
- name: build |
|
|
|
image: node:16 |
|
|
@ -132,15 +132,15 @@ steps: |
|
|
|
- npm i |
|
|
|
- npm run build |
|
|
|
|
|
|
|
# - name: rebuild-cache |
|
|
|
# image: drillster/drone-volume-cache |
|
|
|
# volumes: |
|
|
|
# - name: cache |
|
|
|
# path: /cache |
|
|
|
# settings: |
|
|
|
# rebuild: true |
|
|
|
# mount: |
|
|
|
# - ./node_modules |
|
|
|
- name: rebuild-cache |
|
|
|
image: drillster/drone-volume-cache |
|
|
|
volumes: |
|
|
|
- name: cache |
|
|
|
path: /cache |
|
|
|
settings: |
|
|
|
rebuild: true |
|
|
|
mount: |
|
|
|
- ./node_modules |
|
|
|
|
|
|
|
- name: deploy-scp |
|
|
|
image: appleboy/drone-scp |
|
|
|