i have to use the drone workspace to persistent the cache between steps
continuous-integration/drone/push Build is failing Details

drafts
Nick Dumas 5 months ago
parent 3cf4aee0c7
commit 84f38afc59

@ -10,11 +10,11 @@ steps:
image: drillster/drone-volume-cache image: drillster/drone-volume-cache
volumes: volumes:
- name: go_module_cache - name: go_module_cache
path: /var/cache/go/mod/ path: /drone/src/hugo_cache/
settings: settings:
restore: true restore: true
mount: mount:
- /tmp/hugo_cache/ - /drone/src/hugo_cache/
- name: hugo_prod - name: hugo_prod
depends_on: depends_on:
- restore_cache - restore_cache
@ -107,12 +107,12 @@ steps:
image: drillster/drone-volume-cache image: drillster/drone-volume-cache
volumes: volumes:
- name: go_module_cache - name: go_module_cache
path: /var/cache/go/mod/ path: /drone/src/hugo_cache/
settings: settings:
rebuild: true rebuild: true
mount: mount:
- /tmp/hugo_cache/ - /drone/src/hugo_cache/
volumes: volumes:
- name: go_module_cache - name: go_module_cache
host: host:
path: /var/cache/go/mod/ path: /var/cache/go/hugo_cache/

@ -1,5 +1,6 @@
#! /bin/bash #! /bin/bash
export HUGO_CACHEDIR="/drone/src/hugo_cache/"
# debug alias # debug alias
# alias hugo=hugo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints # alias hugo=hugo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints

Loading…
Cancel
Save