diff --git a/.drone.yml b/.drone.yml index 202bc09..cefeef0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,11 @@ name: default steps: - name: restore cache image: drillster/drone-volume-cache + volumes: + - name: go-mod-cache + path: /go/pkg/mod + - name: go-build-cache + path: /root/.cache/go-build settings: restore: true mount: @@ -23,6 +28,11 @@ steps: - name: rebuild cache image: drillster/drone-volume-cache + volumes: + - name: go-mod-cache + path: /go/pkg/mod + - name: go-build-cache + path: /root/.cache/go-build settings: rebuild: true mount: @@ -56,4 +66,11 @@ steps: # script: # - cd /your/deploy/path/ # - chmod +x start.sh - # - ./start.sh \ No newline at end of file + # - ./start.sh +volumes: + - name: go-mod-cache + host: + path: /opt/drone/cache/go-mod + - name: go-build-cache + host: + path: /opt/drone/cache/go-build \ No newline at end of file