Browse Source

更新 '.drone.yml'

gogs 3 years ago
parent
commit
28fc0697dc
1 changed files with 18 additions and 2 deletions
  1. 18 2
      .drone.yml

+ 18 - 2
.drone.yml

@@ -1,13 +1,29 @@
 kind: pipeline
 name: default
 
-steps:
+steps:    
 - name: 编译
   image: maven:3-jdk-11
+  volumes:
+  - name: mvnCache
+    path: /root/.m2  
   commands:
   - echo 'FINISHED!'
+  
 - name: 钉钉通知
   image: guoxudongdocker/drone-dingtalk
   settings:
     token: 5f6c32b36e771df227b1ccb8898325158e12d851ae61982d1ec225a1aa58e251
-    type: markdown  
+    type: markdown  
+    
+    
+volumes:
+- name: mvnCache
+  host:
+    path: /tmp/cache/.m2
+
+trigger:
+  branch:
+  - master    
+  event:
+  - push