fanxp 1 year ago
parent
commit
4513750de4
1 changed files with 8 additions and 0 deletions
  1. 8 0
      .drone.yml

+ 8 - 0
.drone.yml

@@ -6,6 +6,14 @@ node:
   mode: test_local_1
 
 steps:
+  - name: maven
+    image: maven:3.6.3-jdk-11
+    volumes:
+      - name: maven-cache
+        path: /root/.m2 # 将maven下载依赖的目录挂载出来,防止重复下载
+    commands:
+      - mvn package
+
   - name: build
     image: docker:20.10.7
     volumes: