ci(drone): 添加 Go 模块和构建缓存
- 在 restore cache 和 rebuild cache 步骤中添加了 go-mod-cache 和 go
This commit is contained in:
@@ -33,7 +33,7 @@ steps:
|
|||||||
- name: go-build-cache
|
- name: go-build-cache
|
||||||
path: /opt/drone/cache/go-build
|
path: /opt/drone/cache/go-build
|
||||||
settings:
|
settings:
|
||||||
rebuild: false
|
rebuild: true
|
||||||
mount:
|
mount:
|
||||||
- /opt/drone/cache/go-mod
|
- /opt/drone/cache/go-mod
|
||||||
- /opt/drone/cache/go-build
|
- /opt/drone/cache/go-build
|
||||||
|
|||||||
Reference in New Issue
Block a user