Updated Drone CI configuration

This commit is contained in:
Gregory Ballantine 2019-07-22 15:48:19 -04:00
parent c204786a6c
commit d213548352

View File

@ -1,11 +1,35 @@
kind: pipeline kind: pipeline
name: default name: default
steps:
- name: build - name: build
image: golang image: golang:1.12
commands: commands:
- export PATH=$PATH:/go
- go get github.com/golang/dep/cmd/dep - go get github.com/golang/dep/cmd/dep
- dep ensure - dep ensure
- go build - 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: >
<b>Build {{ build.number }}</b> submitted by {{ commit.author.name }} (<a href="mailto:{{ commit.author.email }}">{{ commit.author.ema
<h3>Commit Info:</h3>
Commit message: {{ commit.message }}<br />
Commit branch: {{ commit.branch }}<br />
Commit link: <a href="{{ commit.link }}">{{ commit.link }}</a><br /><br />
<h3>Build Info:</h3>
Build number: {{ build.number }}<br />
Build status: {{ build.status }}<br />
Build event: {{ build.event }}<br />
Build started at: {{ build.started }}<br />
Build finished at: {{ build.finished }}<br />
Build link: <a href="{{ build.link }}">{{ build.link }}</a>
from: drone@drone.metaunix.net
when:
status: [ success, changed, failure ]