Browse Source

nginx: update config 1

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

+ 11 - 0
.drone.yml

@@ -32,6 +32,17 @@ steps:
       repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/tmr-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/calf-feed-admin/
+        - echo "123456" | ./restart.sh
 trigger:
   branch:
     include: