feat(Drone): Add npm folder cache
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Simon 2022-02-03 11:14:03 +01:00
parent 0bd687c2e6
commit 7879d8559e
1 changed files with 22 additions and 0 deletions

View File

@ -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