-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
44 lines (35 loc) · 1.11 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
---
matrix:
include:
- APP: kafka-connect-ui
NAMESPACE: datawarehouse
pipeline:
publish:
when:
branch: master
event: push
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/${NAMESPACE}/${DRONE_REPO_NAME}
create_repository: true
tags:
- git-${DRONE_COMMIT_SHA:0:7}
- latest
deploy-staging:
when:
branch: master
event: push
image: quay.io/ipedrazas/drone-helm
release: ${APP}
namespace: ${NAMESPACE}
environment:
- API_SERVER=https://api.staging.mongodb.sh
prefix: STAGING
secrets: [ staging_kubernetes_token ]
helm_repos: mongodb=https://10gen-ops.github.io/helm-charts
chart: mongodb/web-app
chart_version: 3.0.0
tiller_ns: ${NAMESPACE}
client_only: true
values: "image.tag=git-${DRONE_COMMIT_SHA:0:7},image.repository=795250896452.dkr.ecr.us-east-1.amazonaws.com/${NAMESPACE}/${DRONE_REPO_NAME},ingress.enabled=true,ingress.hosts[0]=${APP}.${NAMESPACE}.staging.mongodb.sh"