Ver Fonte

debug drone

Ruilin Zeng há 7 meses atrás
pai
commit
119e14004e
1 ficheiros alterados com 16 adições e 0 exclusões
  1. 16 0
      .drone.yml

+ 16 - 0
.drone.yml

@@ -8,6 +8,22 @@ steps:
     pull: if-not-exists
     commands:
       - mvn -Dmaven.test.skip=true package
+    when:
+      branch:
+        - main
+  - name: prod_push
+    image: appleboy/drone-scp:1.8.0
+    settings:
+      host: 192.168.32.7
+      username: root
+      password:
+        from_secret: ssh_password
+      port: 22
+      command_timeout: 30m
+      target: /opt/salesmap/backend/
+      source: salesHelper-admin-assistant/target/salesHelper-admin-assistant.jar
+      strip_components: 2
+      overwrite: true
     when:
       branch:
         - main