Merge pull request 'feat(Drone): Add npm folder cache' (#11) from drone into main
## Détails - ajout d'un dossier de cache ## Pourquoi - Pour accélérer le déploiement et éviter de télécharger les dépendances à chaque déploiement ## Liens - [ticket](https://tree.taiga.io/project/killiankemps-resilien/us/365) Reviewed-on: https://git.weko.io/resilien/resilien.fr/pulls/11 Reviewed-by: killian <developer@killiankemps.fr>
This commit is contained in:
commit
30359777ad
22
.drone.yml
22
.drone.yml
|
@ -33,6 +33,9 @@ steps:
|
||||||
|
|
||||||
- name: install npm
|
- name: install npm
|
||||||
image: node:current-alpine
|
image: node:current-alpine
|
||||||
|
volumes:
|
||||||
|
- name: hugo-theme-lowtech_node_modules
|
||||||
|
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||||
commands:
|
commands:
|
||||||
- (cd themes/hugo-theme-lowtech && npm i)
|
- (cd themes/hugo-theme-lowtech && npm i)
|
||||||
|
|
||||||
|
@ -43,6 +46,9 @@ steps:
|
||||||
|
|
||||||
- name: typo
|
- name: typo
|
||||||
image: node:current-alpine
|
image: node:current-alpine
|
||||||
|
volumes:
|
||||||
|
- name: 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
|
||||||
|
|
||||||
|
@ -67,6 +73,11 @@ trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: hugo-theme-lowtech_node_modules
|
||||||
|
host:
|
||||||
|
path: /tmp/drone/cache/resilien/resilien_fr/themes/hugo-theme-lowtech
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
@ -84,6 +95,9 @@ steps:
|
||||||
|
|
||||||
- name: install npm
|
- name: install npm
|
||||||
image: node:current-alpine
|
image: node:current-alpine
|
||||||
|
volumes:
|
||||||
|
- name: hugo-theme-lowtech_node_modules
|
||||||
|
path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
||||||
commands:
|
commands:
|
||||||
- (cd themes/hugo-theme-lowtech && npm i)
|
- (cd themes/hugo-theme-lowtech && npm i)
|
||||||
|
|
||||||
|
@ -94,6 +108,9 @@ steps:
|
||||||
|
|
||||||
- name: typo
|
- name: typo
|
||||||
image: node:current-alpine
|
image: node:current-alpine
|
||||||
|
volumes:
|
||||||
|
- name: 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
|
||||||
|
|
||||||
|
@ -115,3 +132,8 @@ image_pull_secrets:
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- 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