-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
53 lines (49 loc) · 1001 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
kind: pipeline
name: docker-images
platform:
os: linux
arch: amd64
steps:
- name: buildimg
image: ayravat/debian:10-docker
volumes:
- name: dockersock
path: /var/run/docker.sock
- name: dockerhome
path: /root/.docker
commands:
- sh build.sh
when:
branch:
- master
event:
- push
- name: notify
image: drillster/drone-email
environment:
PLUGIN_HOST:
from_secret: mail_host
PLUGIN_FROM:
from_secret: mail_sender
PLUGIN_FROM_NAME:
from_secret: mail_sender_name
PLUGIN_PORT:
from_secret: mail_port
PLUGIN_USERNAME:
from_secret: mail_user
PLUGIN_PASSWORD:
from_secret: mail_password
PLUGIN_RECIPIENTS:
from_secret: mail_recipients
when:
status:
- failure
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: dockerhome
host:
path: /root/.docker
...