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
|
- name: install npm
|
||||||
image: node:current-alpine
|
image: node:current-alpine
|
||||||
# volumes:
|
volumes:
|
||||||
# - name: hugo-theme-lowtech_node_modules
|
- name: hugo-theme-lowtech_node_modules
|
||||||
# path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||||
environment:
|
environment:
|
||||||
DIRECTUS_URL:
|
DIRECTUS_URL:
|
||||||
from_secret: DIRECTUS_URL
|
from_secret: DIRECTUS_URL
|
||||||
|
@ -64,9 +64,9 @@ steps:
|
||||||
|
|
||||||
- name: typo
|
- name: typo
|
||||||
image: node:current-alpine
|
image: node:current-alpine
|
||||||
# volumes:
|
volumes:
|
||||||
# - name: hugo-theme-lowtech_node_modules
|
- name: hugo-theme-lowtech_node_modules
|
||||||
# path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||||
commands:
|
commands:
|
||||||
- node themes/hugo-theme-lowtech/scripts/typo
|
- node themes/hugo-theme-lowtech/scripts/typo
|
||||||
|
|
||||||
|
@ -85,10 +85,10 @@ steps:
|
||||||
image_pull_secrets:
|
image_pull_secrets:
|
||||||
- REGISTRY_CONFIG
|
- REGISTRY_CONFIG
|
||||||
|
|
||||||
# volumes:
|
volumes:
|
||||||
# - name: hugo-theme-lowtech_node_modules
|
- name: hugo-theme-lowtech_node_modules
|
||||||
# host:
|
host:
|
||||||
# path: /tmp/drone/cache/weko/cremeaux/themes/hugo-theme-lowtech
|
path: /tmp/drone/cache/weko/cremeaux/themes/hugo-theme-lowtech
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -107,9 +107,9 @@ steps:
|
||||||
|
|
||||||
- name: install npm
|
- name: install npm
|
||||||
image: node:current-alpine
|
image: node:current-alpine
|
||||||
# volumes:
|
volumes:
|
||||||
# - name: hugo-theme-lowtech_node_modules
|
- name: hugo-theme-lowtech_node_modules
|
||||||
# path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||||
environment:
|
environment:
|
||||||
DIRECTUS_URL:
|
DIRECTUS_URL:
|
||||||
from_secret: DIRECTUS_URL
|
from_secret: DIRECTUS_URL
|
||||||
|
@ -126,9 +126,9 @@ steps:
|
||||||
|
|
||||||
- name: typo
|
- name: typo
|
||||||
image: node:current-alpine
|
image: node:current-alpine
|
||||||
# volumes:
|
volumes:
|
||||||
# - name: hugo-theme-lowtech_node_modules
|
- name: hugo-theme-lowtech_node_modules
|
||||||
# path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||||
commands:
|
commands:
|
||||||
- node themes/hugo-theme-lowtech/scripts/typo
|
- node themes/hugo-theme-lowtech/scripts/typo
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ steps:
|
||||||
image_pull_secrets:
|
image_pull_secrets:
|
||||||
- REGISTRY_CONFIG
|
- REGISTRY_CONFIG
|
||||||
|
|
||||||
# volumes:
|
volumes:
|
||||||
# - name: hugo-theme-lowtech_node_modules
|
- name: hugo-theme-lowtech_node_modules
|
||||||
# host:
|
host:
|
||||||
# path: /tmp/drone/cache/weko/cremeaux/themes/hugo-theme-lowtech
|
path: /tmp/drone/cache/weko/cremeaux/themes/hugo-theme-lowtech
|
||||||
|
|
Loading…
Reference in New Issue