bridge 3 years ago
parent
commit
248048aad4
1 changed files with 11 additions and 0 deletions
  1. 11 0
      .drone.yml

+ 11 - 0
.drone.yml

@@ -36,6 +36,17 @@ steps:
       registry: nas.fast-fun.cn:5000
       insecure: true
       repo: nas.fast-fun.cn:5000/zhl/pdms-oss-api
+
+  - name: deploy
+    image: appleboy/drone-ssh
+    settings:
+      host: 192.168.0.41
+      username: zhl
+      password: 123456
+      script:
+        - docker rm -f oss-api
+        - docker rmi -f nas.fast-fun.cn:5000/zhl/pdms-oss-api
+        - docker run -d --name oss-api -l traefik.port=8082 nas.fast-fun.cn:5000/zhl/pdms-oss-api
 volumes:
   - name: cache
     host: