From d213548352739ab7708ee8c998515cdb539fe659 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Mon, 22 Jul 2019 15:48:19 -0400 Subject: [PATCH] Updated Drone CI configuration --- .drone.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0aef96c..9256d55 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,35 @@ kind: pipeline name: default +steps: - name: build - image: golang + image: golang:1.12 commands: - - export PATH=$PATH:/go - go get github.com/golang/dep/cmd/dep - dep ensure - go build +- name: notification + image: drillster/drone-email + settings: + host: smtp.int.metaunix.net + skip_verify: true + subject: '[{{ repo.fullName }}] build #{{ build.number }} - {{ build.status }}' + body: > + Build {{ build.number }} submitted by {{ commit.author.name }} ({{ commit.author.ema + +

Commit Info:

+ Commit message: {{ commit.message }}
+ Commit branch: {{ commit.branch }}
+ Commit link:
{{ commit.link }}

+ +

Build Info:

+ Build number: {{ build.number }}
+ Build status: {{ build.status }}
+ Build event: {{ build.event }}
+ Build started at: {{ build.started }}
+ Build finished at: {{ build.finished }}
+ Build link: {{ build.link }} + from: drone@drone.metaunix.net + when: + status: [ success, changed, failure ]