Make pipeline more useful
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
0374883450
commit
d488f9c10f
1 changed files with 33 additions and 9 deletions
42
.drone.yml
42
.drone.yml
|
@ -4,8 +4,6 @@ type: docker
|
||||||
name: build and publish
|
name: build and publish
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
event:
|
||||||
include:
|
include:
|
||||||
- push
|
- push
|
||||||
|
@ -18,23 +16,23 @@ steps:
|
||||||
CREATED: ${DRONE_BUILD_CREATED}
|
CREATED: ${DRONE_BUILD_CREATED}
|
||||||
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
|
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
|
||||||
settings:
|
settings:
|
||||||
|
dry_run: true
|
||||||
purge: true
|
purge: true
|
||||||
username:
|
|
||||||
from_secret: dockerhub_user
|
|
||||||
password:
|
|
||||||
from_secret: dockerhub_key
|
|
||||||
repo: varakh/hetzner-storagebox-exporter
|
repo: varakh/hetzner-storagebox-exporter
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- ${DRONE_COMMIT_SHA}
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: monthly build and publish
|
name: build and publish
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- cron
|
- cron
|
||||||
|
- promote
|
||||||
|
target:
|
||||||
|
- production
|
||||||
cron:
|
cron:
|
||||||
include:
|
include:
|
||||||
- monthly
|
- monthly
|
||||||
|
@ -54,4 +52,30 @@ steps:
|
||||||
from_secret: dockerhub_key
|
from_secret: dockerhub_key
|
||||||
repo: varakh/hetzner-storagebox-exporter
|
repo: varakh/hetzner-storagebox-exporter
|
||||||
tags:
|
tags:
|
||||||
- monthly
|
- latest
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: result
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: notify
|
||||||
|
image: drillster/drone-email
|
||||||
|
settings:
|
||||||
|
subject: "Build failed"
|
||||||
|
body: "URL ${DRONE_BUILD_LINK}"
|
||||||
|
host:
|
||||||
|
from_secret: mail_host
|
||||||
|
username:
|
||||||
|
from_secret: mail_user
|
||||||
|
password:
|
||||||
|
from_secret: mail_password
|
||||||
|
from:
|
||||||
|
from_secret: mail_from
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
||||||
|
|
Loading…
Reference in a new issue