-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.drone.yml
More file actions
115 lines (115 loc) · 2.58 KB
/
.drone.yml
File metadata and controls
115 lines (115 loc) · 2.58 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
workspace:
base: /drone
path: src/github.com/fusionapp/clj-documint
pipeline:
restore_cache:
image: appleboy/drone-sftp-cache
server: sftp-cache.drone7.non-production.fusionapp.com
port: 45945
username: drone-cache
path: /drone-cache
restore: true
ignore_branch: true
mount:
- m2
when:
event:
- push
- pull_request
- tag
secrets:
- sftp_cache_password
uberjar:
image: idnar/lein
pull: true
commands:
- /usr/local/bin/lein with-profile +drone uberjar
when:
event:
- push
- pull_request
- tag
rebuild_cache:
image: appleboy/drone-sftp-cache
server: sftp-cache.drone7.non-production.fusionapp.com
port: 45945
username: drone-cache
path: /drone-cache
rebuild: true
ignore_branch: true
mount:
- m2
when:
event: push
branch: master
secrets:
- sftp_cache_password
publish:
image: plugins/docker
repo: eu.gcr.io/fusion-168903/clj-documint
tags:
- ${DRONE_BRANCH}
- git-${DRONE_COMMIT_SHA}
registry: eu.gcr.io
mirror: https://eu-mirror.gcr.io
username: _json_key
when:
event: push
branch: master
secrets:
- docker_password
deploy-uat:
image: peloton/drone-rancher
url: https://rancher.fusionapp.com
service: Fusion/clj-documint
docker_image: eu.gcr.io/fusion-168903/clj-documint:git-${DRONE_COMMIT_SHA}
start_first: false
confirm: true
timeout: 120
when:
event: push
branch: master
secrets:
- source: rancher_nonprod_access_key
target: rancher_access_key
- source: rancher_nonprod_secret_key
target: rancher_secret_key
deploy-production:
image: peloton/drone-rancher
url: https://rancher.fusionapp.com
service: fusion/clj-documint
docker_image: eu.gcr.io/fusion-168903/clj-documint:git-${DRONE_COMMIT_SHA}
start_first: false
confirm: true
timeout: 120
when:
event: deployment
environment: production
secrets:
- source: rancher_prod_access_key
target: rancher_access_key
- source: rancher_prod_secret_key
target: rancher_secret_key
slack:
image: plugins/slack
secrets:
- slack_webhook
when:
status:
- success
- failure
slack_production:
image: plugins/slack
secrets:
- slack_webhook
channel: production
when:
event: deployment
environment: production
status:
- success
- failure
branches:
- master
- staging
- trying