Browse Source

cicd: update

Yi 1 year ago
parent
commit
ca0dcd2d8f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      .drone.yml

+ 11 - 0
.drone.yml

@@ -28,6 +28,17 @@ steps:
       repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/tmr-group-admin
       registry: registry.cn-hangzhou.aliyuncs.com
       tags: [ test ]
+  - name: ssh commands
+    image: appleboy/drone-ssh
+    settings:
+      host: 192.168.1.70
+      username: tmrwatch
+      password:
+        from_secret: ssh_password
+      port: 22
+      script:
+        - cd /data/docker-compose/tmr-group-admin/
+        - echo "123456" | ./restart.sh
 
 trigger:
   branch: