ci(drone): 添加 Go 模块和构建缓存
- 在 restore cache 和 rebuild cache 步骤中添加了 go-mod-cache 和 go
This commit is contained in:
@@ -13,8 +13,8 @@ steps:
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- go/pkg/mod
|
||||
- ~/.cache/go-build
|
||||
- /go/pkg/mod
|
||||
- /root/.cache/go-build
|
||||
backend: local
|
||||
cache_key: go-mod-cache-${DRONE_BRANCH}
|
||||
|
||||
@@ -48,8 +48,8 @@ steps:
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- go/pkg/mod
|
||||
- ~/.cache/go-build
|
||||
- /go/pkg/mod
|
||||
- /root/.cache/go-build
|
||||
backend: local
|
||||
cache_key: go-mod-cache-${DRONE_BRANCH}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user