Skip to content

Commit e17d6b6

Browse files
authored
Merge pull request #250 from src-d/helm-values-file
use Helm values files
2 parents 2294a55 + e2845f2 commit e17d6b6

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.drone.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ pipeline:
6464
<<: *helm_deploy
6565
prefix: STG
6666
secrets: [ STG_API_SERVER, STG_KUBERNETES_TOKEN ]
67-
values: ingress.globalStaticIpName=code-annotation-staging,ingress.hostname=code-annotation-staging.srcd.run,image.tag=commit-${DRONE_COMMIT_SHA:0:7},deployment.gaTrackingID=UA-115770171-1,authorization.restrictAccessGroup=team:1819537,secretName=code-annotation-drone-workaround
67+
values_files: [ .helm-staging.yml ]
68+
values: image.tag=commit-${DRONE_COMMIT_SHA:0:7}
6869
when:
6970
branch: [staging]
7071
event: [push]
@@ -97,6 +98,7 @@ pipeline:
9798
<<: *helm_deploy
9899
prefix: PROD
99100
secrets: [ PROD_API_SERVER, PROD_KUBERNETES_TOKEN ]
100-
values: ingress.globalStaticIpName=code-annotation-production,ingress.hostname=code-annotation.srcd.run,image.tag=${DRONE_TAG},deployment.gaTrackingID=UA-109494282-2,secretName=code-annotation-drone-workaround
101+
values_files: [ .helm-production.yml ]
102+
values: image.tag=${DRONE_TAG}
101103
when:
102104
event: [tag]

.helm-production.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
secretName: code-annotation-drone-workaround
2+
deployment:
3+
gaTrackingID: UA-109494282-2
4+
ingress:
5+
globalStaticIpName: code-annotation-production
6+
hostname: code-annotation.srcd.run
7+
nodeSelector:
8+
cloud.google.com/gke-nodepool: default-pool

.helm-staging.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
secretName: code-annotation-drone-workaround
2+
authorization:
3+
restrictAccessGroup: "team:1819537"
4+
deployment:
5+
gaTrackingID: UA-115770171-1
6+
ingress:
7+
hostname: code-annotation-staging.srcd.run
8+
globalStaticIpName: code-annotation-staging
9+
nodeSelector:
10+
cloud.google.com/gke-nodepool: default-pool

0 commit comments

Comments
 (0)