forked from gbaeke/helm-azdo-intro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcd.yaml
56 lines (49 loc) · 1.1 KB
/
cd.yaml
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
52
53
54
55
56
trigger: none
pr: none
variables:
- template: ./common/cd-vars.yaml
parameters:
projectName: go-template
# define 3 more variables: registryName, registryLogin and registryPassword in the Azure pipeline UI definition
resources:
pipelines:
- pipeline: ci
source: ci
trigger:
enabled: true
branches:
include:
- main
stages:
- stage: qa
displayName: qa
jobs:
- deployment: qa
displayName: 'deploy helm chart on AKS qa'
pool:
vmImage: ubuntu-latest
variables:
k8sNamespace: $(projectName)-qa
replicas: 1
environment: qa-$(projectName)
strategy:
runOnce:
deploy:
steps:
- template: ./common/cd-steps.yaml
- stage: production
displayName: production
jobs:
- deployment: production
displayName: 'deploy helm chart on AKS prod'
pool:
vmImage: ubuntu-latest
variables:
k8sNamespace: $(projectName)-prod
replicas: 2
environment: prod-$(projectName)
strategy:
runOnce:
deploy:
steps:
- template: ./common/cd-steps.yaml