-
Notifications
You must be signed in to change notification settings - Fork 486
/
.drone.yml
57 lines (56 loc) · 1.85 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
pipeline:
build_docker:
image: plugins/docker
repo: simplewebrtc/signalmaster
tags:
- latest
- ${DRONE_COMMIT_SHA:0:8}
secrets: [ docker_username, docker_password ]
when:
event: [ deployment, tag ]
drone_helm_tag:
image: one000mph/drone-helm:stage
skip_tls_verify: false
chart: andyet/signalmaster
prefix: staging
recreate_pods: true
helm_repos: andyet=https://andyet-helm-charts.storage.googleapis.com/
release: signalmaster
values_files: values-stage.yaml
values: deployment.image.repository=simplewebrtc/signalmaster:${DRONE_COMMIT_SHA:0:8},secrets.data.STUNSERVER_URL=$${STUNSERVER_URL},secrets.data.TURNSERVER_URL=$${TURNSERVER_URL},secrets.data.TURNSERVER_SECRET=$${TURNSERVER_SECRET}
secrets: [
staging_STUNSERVER_URL,
staging_TURNSERVER_URL,
staging_TURNSERVER_SECRET,
staging_KUBERNETES_CERTIFICATE,
staging_KUBERNETES_TOKEN,
staging_API_SERVER ]
when:
event: tag
drone_helm_deploy:
image: one000mph/drone-helm:stage
skip_tls_verify: false
chart: andyet/signalmaster
prefix: prod
recreate_pods: true
helm_repos: andyet=https://andyet-helm-charts.storage.googleapis.com/
release: signalmaster
values_files: values-prod.yaml
values: secrets.data.STUNSERVER_URL=$${STUNSERVER_URL},secrets.data.TURNSERVER_URL=$${TURNSERVER_URL},secrets.data.TURNSERVER_SECRET=$${TURNSERVER_SECRET}
secrets: [
prod_STUNSERVER_URL,
prod_TURNSERVER_URL,
prod_TURNSERVER_SECRET,
prod_KUBERNETES_CERTIFICATE,
prod_KUBERNETES_TOKEN,
prod_API_SERVER ]
when:
event: deployment
slack:
image: andyet/drone-slack:stable
pull: true
username: drone
channel: io-alerts
secrets: [ slack_webhook, github_access_token, github_slack_lookup ]
when:
status: [ success, failure ]