first attempt at caching go modules
continuous-integration/drone/push Build is passing Details

drafts
Nick Dumas 5 months ago
parent 4a8c666eee
commit b00d858090

@ -6,6 +6,15 @@ clone:
depth: 1
steps:
- name: restore_cache
image: drillster/drone-volume-cache
volumes:
- name: go_module_cache
path: /var/cache/go/mod/
settings:
restore: true
mount:
- /root/go/pkg/mod/
- name: hugo_prod
image: code.ndumas.com/ndumas/hugo:latest
commands:
@ -84,3 +93,12 @@ steps:
branch:
include:
- drafts
- name: rebuild_cache
image: drillster/drone-volume-cache
volumes:
- name: go_module_cache
path: /var/cache/go/mod/
settings:
rebuild: true
mount:
- /root/go/pkg/mod/

Loading…
Cancel
Save