-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy path.drone.yml
37 lines (37 loc) · 1.12 KB
/
.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
clone:
git:
image: plugins/git
tags: true
pipeline:
build:
image: plugins/docker
repo: datafari/ce_build
tags:
- latest
- "${DRONE_COMMIT_SHA}"
secrets: [ docker_username, docker_password ]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
branch: master
build-release:
image: plugins/docker
repo: datafari/ce_build
auto_tag: true
secrets: [ docker_username, docker_password ]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event: tag
notify:
image: drillster/drone-email
from : [email protected]
skip_verify: true
when:
status: [ success, failure ]
secrets: [ email_username, email_password, email_port, email_host, email_recipients ]
ssh:
image: appleboy/drone-ssh
secrets: [ ssh_host, ssh_username, ssh_key, ssh_port ]
script:
- cd /var/work/dockerswarm/datafarice && docker stack deploy -c datafarice.yml datafarice --with-registry-auth