muldap/.drone.yml

36 lines
1.1 KiB
YAML

kind: pipeline
name: default
steps:
- name: build
image: golang:1.12
commands:
- go mod vendor
- 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.email }}</a>)<br /><br />
<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 ]