-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
47 lines (43 loc) · 1002 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
build:
config:
image: ubuntu
commands:
- sed -e 's/$BUILDO_GITHUB_TOKEN/$$BUILDO_GITHUB_TOKEN/g' -e 's/$OMNILAB_GITHUB_TOKEN/$$OMNILAB_GITHUB_TOKEN/g' config-ci.json > config.json
publish:
docker:
registry: quay.io
username: $$QUAY_USERNAME
password: $$QUAY_PASSWORD
email: $$QUAY_EMAIL
repo: buildo/nemobot
force_tag: true
insecure: true
tag:
- latest
- $$COMMIT
deploy:
ssh:
host: jar.srv.buildo.io
user: root
port: 22
commands:
- crane lift nemobot
when:
branch: master
notify:
slack_blame:
token: $$SLACK_TOKEN
channel: "#nemobot"
failure:
username: "Desolated Drone"
icon: ":robot_face:"
message: "Something went wrong during the deploy!"
success:
username: "Enthusiastic Drone"
icon: ":robot_face:"
message: ":tada: New version successfully deployed!! (commit: $$COMMIT)"
when:
branch: master
cache:
mount:
- deploy/image.tar