/
.drone.yml
43 lines (40 loc) · 852 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
---
kind: pipeline
type: docker
name: default
steps:
- name: build-server
image: golang:1.13
commands:
- make build
when:
event: push
- name: publish-server-image
image: plugins/gcr
settings:
registry: gcr.io
repo: wheresthetrain-nyc/wtt
tag: "${DRONE_COMMIT}"
json_key:
from_secret: google_credentials
when:
branch: [master]
event: push
- name: deploy
image: nytimes/drone-gae
settings:
action: deploy
project: wheresthetrain-nyc
dir: cmd/server
app_file: app.yaml
addl_args: '{ "--image-url": "gcr.io/wheresthetrain-nyc/wtt:${DRONE_COMMIT}" }'
version: "${DRONE_COMMIT}"
vars: '{ "KEY": "$$MTA_KEY" }'
environment:
GAE_CREDENTIALS:
from_secret: google_credentials
MTA_KEY:
from_secret: mta_key
when:
branch: [master]
event: push