-
Notifications
You must be signed in to change notification settings - Fork 54
/
adf_build_stage.yml
28 lines (28 loc) · 1.16 KB
/
adf_build_stage.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
parameters:
- name: serviceName
type: string
default: 'SampleApp'
- name: packageDir
type: string
default: '$(Build.Repository.LocalPath)/adf_scripts'
- name: adfDir
type: string
default: '$(Build.Repository.LocalPath)/adf'
- name: baseEnv
default: 'dev'
- name: baseRegion
default: 'eus'
stages:
- stage: '${{ parameters.serviceName }}_build'
variables:
- template: ../variables/azure_global_variables.yml
- template: ../variables/azure_${{ parameters.baseEnv }}_variables.yml
jobs:
- template: ../jobs/adf_build_job.yml
parameters:
environmentName: ${{ parameters.baseEnv }}
dataFactoryResourceID: '/subscriptions/${{ variables.azureSubscriptionID }}/resourceGroups/${{ variables.resourceGroupAbrv }}-${{ parameters.serviceName }}-${{ parameters.baseEnv }}-${{ parameters.baseRegion }}/providers/Microsoft.DataFactory/factories/${{ variables.dataFactoryAbrv }}-${{ parameters.serviceName }}-${{ parameters.baseEnv }}-${{ parameters.baseRegion }}'
serviceName: ${{ parameters.serviceName }}
regionAbrv: ${{ parameters.baseRegion }}
packageDir: ${{ parameters.packageDir }}
adfDir: ${{ parameters.adfDir }}