From 7879d8559e901ab03d8ac23cee3eb8a9af8a9727 Mon Sep 17 00:00:00 2001 From: Simon C Date: Thu, 3 Feb 2022 11:14:03 +0100 Subject: [PATCH] feat(Drone): Add npm folder cache --- .drone.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.drone.yml b/.drone.yml index 8130050..05eab5f 100644 --- a/.drone.yml +++ b/.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