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