Updated Drone CI configuration
This commit is contained in:
parent
c204786a6c
commit
d213548352
28
.drone.yml
28
.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: >
|
||||
<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 ]
|
||||
|
Loading…
Reference in New Issue
Block a user