feat: Ajout de cache pour npm
This commit is contained in:
parent
e9ba23a2e8
commit
c6c693b278
40
.drone.yml
40
.drone.yml
|
@ -45,9 +45,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
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||
environment:
|
||||
DIRECTUS_URL:
|
||||
from_secret: DIRECTUS_URL
|
||||
|
@ -64,9 +64,9 @@ steps:
|
|||
|
||||
- name: typo
|
||||
image: node:current-alpine
|
||||
# volumes:
|
||||
# - name: hugo-theme-lowtech_node_modules
|
||||
# path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||
commands:
|
||||
- node themes/hugo-theme-lowtech/scripts/typo
|
||||
|
||||
|
@ -85,10 +85,10 @@ steps:
|
|||
image_pull_secrets:
|
||||
- REGISTRY_CONFIG
|
||||
|
||||
# volumes:
|
||||
# - name: hugo-theme-lowtech_node_modules
|
||||
# host:
|
||||
# path: /tmp/drone/cache/weko/cremeaux/themes/hugo-theme-lowtech
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
host:
|
||||
path: /tmp/drone/cache/weko/cremeaux/themes/hugo-theme-lowtech
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
|
@ -107,9 +107,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
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||
environment:
|
||||
DIRECTUS_URL:
|
||||
from_secret: DIRECTUS_URL
|
||||
|
@ -126,9 +126,9 @@ steps:
|
|||
|
||||
- name: typo
|
||||
image: node:current-alpine
|
||||
# volumes:
|
||||
# - name: hugo-theme-lowtech_node_modules
|
||||
# path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||
commands:
|
||||
- node themes/hugo-theme-lowtech/scripts/typo
|
||||
|
||||
|
@ -147,7 +147,7 @@ steps:
|
|||
image_pull_secrets:
|
||||
- REGISTRY_CONFIG
|
||||
|
||||
# volumes:
|
||||
# - name: hugo-theme-lowtech_node_modules
|
||||
# host:
|
||||
# path: /tmp/drone/cache/weko/cremeaux/themes/hugo-theme-lowtech
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
host:
|
||||
path: /tmp/drone/cache/weko/cremeaux/themes/hugo-theme-lowtech
|
||||
|
|
Loading…
Reference in New Issue