feat(Drone): Add npm folder cache
This commit is contained in:
parent
0bd687c2e6
commit
7879d8559e
22
.drone.yml
22
.drone.yml
|
@ -33,6 +33,9 @@ steps:
|
|||
|
||||
- name: install npm
|
||||
image: node:current-alpine
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||
commands:
|
||||
- (cd themes/hugo-theme-lowtech && npm i)
|
||||
|
||||
|
@ -43,6 +46,9 @@ steps:
|
|||
|
||||
- name: typo
|
||||
image: node:current-alpine
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||
commands:
|
||||
- node themes/hugo-theme-lowtech/scripts/typo
|
||||
|
||||
|
@ -67,6 +73,11 @@ trigger:
|
|||
branch:
|
||||
- main
|
||||
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
host:
|
||||
path: /tmp/drone/cache/resilien/resilien_fr/themes/hugo-theme-lowtech
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
@ -84,6 +95,9 @@ steps:
|
|||
|
||||
- name: install npm
|
||||
image: node:current-alpine
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||
commands:
|
||||
- (cd themes/hugo-theme-lowtech && npm i)
|
||||
|
||||
|
@ -94,6 +108,9 @@ steps:
|
|||
|
||||
- name: typo
|
||||
image: node:current-alpine
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||
commands:
|
||||
- node themes/hugo-theme-lowtech/scripts/typo
|
||||
|
||||
|
@ -115,3 +132,8 @@ image_pull_secrets:
|
|||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
host:
|
||||
path: /tmp/drone/cache/resilien/resilien_fr/themes/hugo-theme-lowtech
|
||||
|
|
Loading…
Reference in New Issue