forked from microsoft/FHIR-Analytics-Pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
52 lines (45 loc) · 1.06 KB
/
azure-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
49
50
51
52
name: $(Date:yyyyMMdd)$(Rev:.r)
trigger:
- main
- synapse
- refs/heads/synapse
pr:
- main
- synapse
variables:
buildConfiguration: 'Release'
buildPlatform: 'x64'
major: 0
minor: 3
patch: 0
buildnum: $[counter(format('{0}.{1}.{2}', variables['major'], variables['minor'], variables['patch']), 1)]
version: $(major).$(minor).$(patch).$(buildnum)
stages:
- stage: Build
pool:
vmImage: windows-2019
jobs:
- job: BuildFhirToCdm
steps:
- template: FhirToCdm/build.yml
- job: BuildFhirToDataLake
steps:
- template: FhirToDataLake/build.yml
- stage: Release
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
pool:
vmImage: 'windows-latest'
jobs:
- job: SynapseE2ETest
steps:
- template: FhirToDataLake/synapse-e2e-test.yml
- job: PublishFhirToCdm
dependsOn: SynapseE2ETest
condition: succeeded()
steps:
- template: FhirToCdm/publish.yml
- job: PublishArtifactsToGitHub
dependsOn: PublishFhirToCdm
condition: succeeded()
steps:
- template: publish.yml