58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: default
|
||
|
|
||
|
trigger:
|
||
|
event:
|
||
|
include:
|
||
|
- push
|
||
|
- cron
|
||
|
branch:
|
||
|
- master
|
||
|
|
||
|
environment: &default_environment
|
||
|
REVISION: ${DRONE_COMMIT_SHA}
|
||
|
CREATED: ${DRONE_BUILD_CREATED}
|
||
|
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
|
||
|
# also change in 'tags' of build docker
|
||
|
TS3WEB_VERSION: 2.2.5
|
||
|
|
||
|
steps:
|
||
|
- name: build docker image
|
||
|
image: plugins/docker
|
||
|
environment:
|
||
|
<<: *default_environment
|
||
|
settings:
|
||
|
purge: true
|
||
|
repo: varakh/ts3web
|
||
|
username:
|
||
|
from_secret: dockerhub_user
|
||
|
password:
|
||
|
from_secret: dockerhub_key
|
||
|
tags:
|
||
|
- latest
|
||
|
- 2.2.5
|
||
|
|
||
|
- 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
|
||
|
---
|
||
|
kind: signature
|
||
|
hmac: f575a63bd85c4a95593be5e077373216fbd50ad57e6b3d1db56f950e881ed2a5
|
||
|
|
||
|
...
|