-
Notifications
You must be signed in to change notification settings - Fork 14
/
.drone.yml
133 lines (126 loc) · 2.94 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
kind: pipeline
type: docker
name: default
steps:
- name: build-web
image: digitallyseamless/nodejs-bower-grunt
commands:
- cd web
- npm install
- bower install
- grunt build
when:
event: push
- name: deploy-web
image: nytimes/drone-gae:latest
settings:
action: deploy
project: newshound
dir: web
app_file: app.yaml
version: "${DRONE_COMMIT}"
max_versions: 2
environment:
GAE_CREDENTIALS:
from_secret: google_credentials
when:
branch: [master]
event: push
- name: deploy-api
image: nytimes/drone-gae:latest
settings:
action: deploy
beta: true
project: newshound
dir: api/server
app_file: app.yaml
version: "${DRONE_COMMIT}"
max_versions: 2
vars: '{"DB_PWD":"$$DB_PWD"}'
environment:
GAE_CREDENTIALS:
from_secret: google_credentials
DB_PWD:
from_secret: fetch_pwd
when:
branch: [master]
event: push
- name: deploy-fetchd
image: nytimes/drone-gae:latest
settings:
action: deploy
beta: true
project: newshound
dir: fetch/fetchd
app_file: app.yaml
version: "${DRONE_COMMIT}"
max_versions: 2
vars: '{"MAIL_KEY":"$$MAIL_KEY", "DB_PWD":"$$DB_PWD", "EMAIL": "$$EMAIL"}'
environment:
GAE_CREDENTIALS:
from_secret: google_credentials
DB_PWD:
from_secret: fetch_pwd
MAIL_KEY:
from_secret: mail_key
EMAIL:
from_secret: email
when:
branch: [master]
event: push
- name: deploy-barkd
image: nytimes/drone-gae:latest
settings:
action: deploy
project: newshound
dir: bark/barkd
app_file: app.yaml
version: "${DRONE_COMMIT}"
max_versions: 2
vars: '{"SLACK_KEYS":"$$SLACK_KEYS", "TWITTER_TOKENS":"$$TWITTER_TOKENS", "TWITTER_SECRETS": "$$TWITTER_SECRETS", "TWITTER_CONSUMERS": "$$TWITTER_CONSUMERS", "TWITTER_CONSUMER_SECRETS": "$$TWITTER_CONSUMER_SECRETS"}'
environment:
GAE_CREDENTIALS:
from_secret: google_credentials
SLACK_KEYS:
from_secret: slack_keys
TWITTER_TOKENS:
from_secret: twitter_tokens
TWITTER_SECRETS:
from_secret: twitter_secrets
TWITTER_CONSUMERS:
from_secret: twitter_consumers
TWITTER_CONSUMER_SECRETS:
from_secret: twitter_consumer_secrets
when:
branch: [master]
event: push
- name: publish-np-image
image: plugins/gcr
settings:
registry: gcr.io
repo: newshound/np
tag: "${DRONE_COMMIT}"
context: np_extractor
dockerfile: np_extractor/Dockerfile
json_key:
from_secret: google_credentials
when:
branch: [master]
event: push
- name: deploy-np
image: nytimes/drone-gae:latest
settings:
action: deploy
project: newshound
dir: np_extractor
app_file: app.yaml
addl_args: '{ "--image-url": "gcr.io/newshound/np:${DRONE_COMMIT}" }'
version: "${DRONE_COMMIT}"
max_versions: 2
environment:
GAE_CREDENTIALS:
from_secret: google_credentials
when:
branch: [master]
event: push