|
@@ -9,16 +9,16 @@ trigger:
|
|
|
|
|
|
steps:
|
|
|
|
|
|
-# # 获取缓存 (首次部署需要下载,不使用缓存)
|
|
|
-# - name: restore-cache
|
|
|
-# image: drillster/drone-volume-cache
|
|
|
-# settings:
|
|
|
-# restore: true
|
|
|
-# mount:
|
|
|
-# - /root/.m2/repository
|
|
|
-# volumes:
|
|
|
-# - name: repository
|
|
|
-# path: /cache
|
|
|
+ # 获取缓存 (首次部署注释掉此处)
|
|
|
+ - name: restore-cache
|
|
|
+ image: drillster/drone-volume-cache
|
|
|
+ settings:
|
|
|
+ restore: true
|
|
|
+ mount:
|
|
|
+ - /root/.m2/repository
|
|
|
+ volumes:
|
|
|
+ - name: repository
|
|
|
+ path: /cache
|
|
|
|
|
|
# 参考:
|
|
|
# https://www.jianshu.com/p/4aaac6c0c105
|