jek 2 months ago
parent
commit
09bd82daeb
1 changed files with 16 additions and 4 deletions
  1. 16 4
      .drone.yml

+ 16 - 4
.drone.yml

@@ -3,7 +3,7 @@ name: default
 
 steps:
   - name: restore-cache
-    image: drillster/drone-volume-cache
+    image: rpi.it5000.com:5000/drillster/drone-volume-cache
     settings:
       restore: true
       mount:
@@ -13,12 +13,12 @@ steps:
         path: /cache
 
   - name: mvn-package
-    image: maven:3.8.4-jdk-8
+    image: rpi.it5000.com:5000/jaikuai/npm-mvn:rpi
     commands:
       - mvn clean package -Dmaven.test.skip=true -Dmaven.repo.local=./repository -s ./setting.xml
 
   - name: rebuild-cache
-    image: drillster/drone-volume-cache
+    image: rpi.it5000.com:5000/drillster/drone-volume-cache
     settings:
       rebuild: true
       mount:
@@ -28,7 +28,7 @@ steps:
         path: /cache
 
   - name: docker-build
-    image: plugins/docker
+    image: rpi.it5000.com:5000/docker:27
     settings:
       tags:
         - latest
@@ -37,6 +37,18 @@ steps:
       insecure: true
       repo: nas.fast-fun.cn:5000/zk/zhili-station-server
 
+
+  - name: docker-build
+    image: rpi.it5000.com:5000/docker:27
+    privileged: true
+    volumes:
+      - name: docker
+        path: /var/run/docker.sock
+    commands:
+      - docker build -t nas.fast-fun.cn:5000/zk/zhili-station-server:2.0.${DRONE_BUILD_NUMBER} -f Dockerfile .
+      - docker push nas.fast-fun.cn:5000/zk/zhili-station-server:2.0.${DRONE_BUILD_NUMBER}
+
+
 volumes:
   - name: cache
     host: