xiehuanqun 1 mese fa
parent
commit
0ce5b6d61a
1 ha cambiato i file con 10 aggiunte e 9 eliminazioni
  1. 10 9
      .drone.yml

+ 10 - 9
.drone.yml

@@ -10,15 +10,15 @@ 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
 
   # 打包 prod
   - name: build-prod
@@ -31,6 +31,7 @@ steps:
     commands:
       - mvn clean package -P prod -DskipTests
       - mkdir -p /app/build/target
+      - cp -r target/libs /app/build/libs
       - cp target/test.jar /app/build/target/test.jar
       - cp Dockerfile /app/build/Dockerfile
       - cp docker-compose.yml /app/build/docker-compose.yml