-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
47 lines (44 loc) · 1.26 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
---
kind: pipeline
type: kubernetes
name: default
trigger:
branch:
- develop
steps:
- name: publish
image: plugins/kaniko-ecr
settings:
create_repository: true
registry: 795250896452.dkr.ecr.us-east-1.amazonaws.com
repo: sa-demo/${DRONE_REPO_NAME}/all-in-one
dockerfile: Dockerfile
context: .
tags:
- git-${DRONE_COMMIT_SHA:0:7}
- latest
access_key:
from_secret: ecr_access_key
secret_key:
from_secret: ecr_secret_key
build_args:
- DB_CONNECTION_STRING=${MONGODB}
when:
event:
- push
- name: deploy
image: public.ecr.aws/kanopy/drone-helm:v3
settings:
chart: mongodb/web-app
chart_version: 4.25.0
add_repos: [mongodb=https://10gen.github.io/helm-charts]
namespace: sa-demo
release: device-manager
values_files: [ "environments/base.yaml", "environments/backend.staging.yaml" ]
values: image.tag=git-${DRONE_COMMIT_SHA:0:7},image.repository=795250896452.dkr.ecr.us-east-1.amazonaws.com/sa-demo/${DRONE_REPO_NAME}/all-in-one,ingress.enabled=true,ingress.hosts[0]=device-manager.sa-demo.staging.corp.mongodb.com,mesh.enabled=true
api_server: https://api.staging.corp.mongodb.com
kubernetes_token:
from_secret: staging_kubernetes_token
when:
event:
- push