Browse Source

Deactivate drone on non-master branch

Kirk Trombley 4 năm trước cách đây
mục cha
commit
8875c1ce40
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      .drone.yml

+ 6 - 0
.drone.yml

@@ -22,6 +22,9 @@ steps:
   volumes:
   - name: build
     path: /build/
+  when:
+    branch:
+    - master
   settings:
     host: hiram.services
     username: hiram
@@ -32,6 +35,9 @@ steps:
     source: /build
 - name: deploy-ui
   image: appleboy/drone-ssh
+  when:
+    branch:
+    - master
   settings:
     host: hiram.services
     username: hiram