From 84f38afc5912b08b95fa26d93d14d007b4d0ce84 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Wed, 3 Jul 2024 11:16:44 -0400 Subject: [PATCH] i have to use the drone workspace to persistent the cache between steps --- .drone.yml | 10 +++++----- build.sh | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 13341e1..b09e19f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,11 +10,11 @@ steps: image: drillster/drone-volume-cache volumes: - name: go_module_cache - path: /var/cache/go/mod/ + path: /drone/src/hugo_cache/ settings: restore: true mount: - - /tmp/hugo_cache/ + - /drone/src/hugo_cache/ - name: hugo_prod depends_on: - restore_cache @@ -107,12 +107,12 @@ steps: image: drillster/drone-volume-cache volumes: - name: go_module_cache - path: /var/cache/go/mod/ + path: /drone/src/hugo_cache/ settings: rebuild: true mount: - - /tmp/hugo_cache/ + - /drone/src/hugo_cache/ volumes: - name: go_module_cache host: - path: /var/cache/go/mod/ + path: /var/cache/go/hugo_cache/ diff --git a/build.sh b/build.sh index 66244eb..fdf34f8 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,6 @@ #! /bin/bash +export HUGO_CACHEDIR="/drone/src/hugo_cache/" # debug alias # alias hugo=hugo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints