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