forked from mongodb/marian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
51 lines (49 loc) · 1.71 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
pipeline:
publish:
image: plugins/ecr
secrets: [ecr_access_key, ecr_secret_key]
registry: 795250896452.dkr.ecr.us-east-1.amazonaws.com
repo: 795250896452.dkr.ecr.us-east-1.amazonaws.com/docs/${DRONE_REPO_NAME}
create_repository: true
tags:
- git-${DRONE_COMMIT_SHA:0:7}
- latest
when:
branch: [master, staging]
event: push
deploy-staging:
image: quay.io/mongodb/drone-helm:v2
release: marian
namespace: docs
environment:
- API_SERVER=https://api.staging.corp.mongodb.com
prefix: STAGING
secrets: [staging_kubernetes_token]
helm_repos: mongodb=https://10gen.github.io/helm-charts
chart: mongodb/web-app
chart_version: 4.7.3
tiller_ns: docs
client_only: true
values_files: ["environments/prod.yml"]
values: "image.tag=git-${DRONE_COMMIT_SHA:0:7},image.repository=795250896452.dkr.ecr.us-east-1.amazonaws.com/docs/${DRONE_REPO_NAME},ingress.enabled=true,ingress.hosts[0]=marian.docs.staging.corp.mongodb.com"
when:
branch: staging
event: push
deploy-prod:
image: quay.io/mongodb/drone-helm:v2
release: marian
namespace: docs
environment:
- API_SERVER=https://api.prod.corp.mongodb.com
prefix: PROD
secrets: [prod_kubernetes_token]
helm_repos: mongodb=https://10gen.github.io/helm-charts
chart: mongodb/web-app
chart_version: 4.7.3
tiller_ns: docs
client_only: true
values_files: ["environments/prod.yml"]
values: "image.tag=git-${DRONE_COMMIT_SHA:0:7},image.repository=795250896452.dkr.ecr.us-east-1.amazonaws.com/docs/${DRONE_REPO_NAME},ingress.enabled=true,ingress.hosts[0]=marian.docs.prod.corp.mongodb.com"
when:
branch: master
event: push