forked from officialmofabs/modern-data-warehouse-dataops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib-pipelines.yml
48 lines (47 loc) · 1.56 KB
/
lib-pipelines.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
variables:
- group: Databricks-dev-environment
- group: Databricks-stg-environment
- group: Databricks-prod-environment
stages:
- stage: deploy_library_to_dev
displayName: 'Deploy to Dev'
condition: |
startsWith(variables['Build.SourceBranch'], 'refs/heads/develop')
jobs:
- template: ./template/test-lib-job.yml
parameters:
environmentName: 'DEV'
- template: ./template/deploy-lib-job.yml
parameters:
environmentName: 'DEV'
databricksDomain: '$(databricksDomain_dev)'
databricksToken: '$(databricksToken_dev)'
databricksClusterId: '$(databricksClusterId_dev)'
- stage: deploy_library_to_stg
displayName: 'Deploy to Staging'
condition: |
startsWith(variables['Build.SourceBranch'], 'refs/heads/staging')
jobs:
- template: ./template/test-lib-job.yml
parameters:
environmentName: 'STG'
- template: ./template/deploy-lib-job.yml
parameters:
environmentName: 'STG'
databricksDomain: '$(databricksDomain_stg)'
databricksToken: '$(databricksToken_stg)'
databricksClusterId: '$(databricksClusterId_stg)'
- stage: deploy_library_to_prod
displayName: 'Deploy to Prod'
condition: |
startsWith(variables['Build.SourceBranch'], 'refs/heads/production')
jobs:
- template: ./template/test-lib-job.yml
parameters:
environmentName: 'PROD'
- template: ./template/deploy-lib-job.yml
parameters:
environmentName: 'PROD'
databricksDomain: '$(databricksDomain_prod)'
databricksToken: '$(databricksToken_prod)'
databricksClusterId: '$(databricksClusterId_prod)'