From 7bc20231ec9ff41ebfcbd0404ac7469293d45733 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 5 Jan 2024 10:58:53 +1100 Subject: [PATCH] exclude go cache folders from dell upload --- .drone.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) 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