diff --git a/.drone.yml b/.drone.yml index 2c2fee9..d6f27ff 100644 --- a/.drone.yml +++ b/.drone.yml @@ -48,23 +48,6 @@ steps: - cp /shared/index.html ./www/ - sh ./.drone.sh -- name: rebuild-cache-with-filesystem - image: meltwater/drone-cache - pull: true - settings: - backend: "filesystem" - #debug: true - rebuild: true - cache_key: '{{ .Repo.Name }}_{{ arch }}_{{ os }}' - archive_format: "tar" - filesystem_cache_root: "/go" - mount: - - pkg.mod - - pkg.build - volumes: - - name: cache - path: /go - # Copy binary to test server - name: coadcorp-deploy image: appleboy/drone-scp @@ -112,7 +95,24 @@ steps: PLUGIN_CHMOD: false #PLUGIN_DEBUG: false PLUGIN_INCLUDE: ^smt$,^smt_checksum.txt$ - PLUGIN_EXCLUDE: ^\.git/$,^\controllers/$,^\middlewares/$,^\models/$,^\utils/$ + PLUGIN_EXCLUDE: ^\.git/$,^\controllers/$,^\middlewares/$,^\models/$,^\utils/$,^\pkg.build/$,^\pkg.mod/$,^\www/$ + +- name: rebuild-cache-with-filesystem + image: meltwater/drone-cache + pull: true + settings: + backend: "filesystem" + #debug: true + rebuild: true + cache_key: '{{ .Repo.Name }}_{{ arch }}_{{ os }}' + archive_format: "tar" + filesystem_cache_root: "/go" + mount: + - pkg.mod + - pkg.build + volumes: + - name: cache + path: /go volumes: - name: shared