troubleshoot go cache location
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -5,7 +5,10 @@ export CGO_ENABLED=0
|
|||||||
|
|
||||||
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
|
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
|
||||||
echo $now
|
echo $now
|
||||||
make drone-cache
|
go env GOCACHE
|
||||||
|
GOCACHE=/tmp/cache
|
||||||
|
export GOCACHE
|
||||||
|
go env GOCACHE
|
||||||
echo "build commences"
|
echo "build commences"
|
||||||
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt
|
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt
|
||||||
echo "build complete"
|
echo "build complete"
|
||||||
|
12
.drone.yml
12
.drone.yml
@@ -26,9 +26,9 @@ steps:
|
|||||||
restore: true
|
restore: true
|
||||||
cache_key: "volume"
|
cache_key: "volume"
|
||||||
archive_format: "gzip"
|
archive_format: "gzip"
|
||||||
# filesystem_cache_root: "/tmp/cache"
|
filesystem_cache_root: "/tmp/cache"
|
||||||
mount:
|
#mount:
|
||||||
- 'vendor'
|
# - 'vendor'
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /tmp/cache
|
path: /tmp/cache
|
||||||
@@ -51,9 +51,9 @@ steps:
|
|||||||
rebuild: true
|
rebuild: true
|
||||||
cache_key: "volume"
|
cache_key: "volume"
|
||||||
archive_format: "gzip"
|
archive_format: "gzip"
|
||||||
# filesystem_cache_root: "/tmp/cache"
|
filesystem_cache_root: "/tmp/cache"
|
||||||
mount:
|
#mount:
|
||||||
- 'vendor'
|
# - 'vendor'
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /tmp/cache
|
path: /tmp/cache
|
||||||
|
Reference in New Issue
Block a user