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