Browse Source

mail on failure

tobiaskaminsky 7 years ago
parent
commit
7251088844
1 changed files with 13 additions and 0 deletions
  1. 13 0
      .drone.yml

+ 13 - 0
.drone.yml

@@ -39,6 +39,19 @@ pipeline:
     when:
       matrix:
         FLAVOUR: Lint
+        
+  notify:
+      image: drillster/drone-email
+      host: $EMAIL_HOST
+      port: 587
+      username: $EMAIL_USERNAME
+      password: $EMAIL_PASSWORD
+      from: nextcloud-drone@kaminsky.me
+      recipients_only: true
+      recipients: [ $EMAIL_RECIPIENTS ]
+      secrets: [ EMAIL_USERNAME, EMAIL_PASSWORD, EMAIL_RECIPIENTS, EMAIL_HOST ]
+      when:
+        status: [ failure ]
 
 matrix:
   FLAVOUR: