This repository has been archived by the owner on Nov 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
AzureDevOps-CI.yml
62 lines (62 loc) · 1.74 KB
/
AzureDevOps-CI.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
53
54
55
56
57
58
59
60
61
62
queue:
name: Hosted Linux Preview
condition: succeeded()
variables:
BuildConfiguration: release
steps:
- task: Docker@0
displayName: Build Web image
inputs:
dockerFile: 'SqlServerAutoTuningDashboard/Dockerfile-Web'
defaultContext: false
context: SqlServerAutoTuningDashboard
imageName: 'sql-autotune-dashboard:$(Build.BuildId)'
includeLatestTag: true
qualifyImageName: true
- task: Docker@0
displayName: Push Web image
inputs:
action: 'Push an image'
imageName: 'sql-autotune-dashboard:$(Build.BuildId)'
includeLatestTag: true
qualifyImageName: true
- task: Docker@0
displayName: Build Sql image
inputs:
dockerFile: 'SqlServerAutoTuningDashboard/Dockerfile-Sql'
defaultContext: false
context: SqlServerAutoTuningDashboard
imageName: 'my-mssql-linux:$(Build.BuildId)'
includeLatestTag: true
qualifyImageName: true
- task: Docker@0
displayName: Push Sql image
inputs:
action: 'Push an image'
imageName: 'my-mssql-linux:$(Build.BuildId)'
includeLatestTag: true
qualifyImageName: true
- task: HelmInstaller@0
displayName: Install Helm 2.10.0
inputs:
helmVersion: 2.10.0
checkLatestHelmVersion: true
- task: HelmDeploy@0
displayName: helm init --client-only
inputs:
command: init
upgradeTiller: false
arguments: '--client-only'
- task: HelmDeploy@0
displayName: helm package
inputs:
command: package
chartPath: 'SqlServerAutoTuningDashboard/charts/autotuningdashboard'
chartVersion: '$(Build.BuildId)'
save: false
destination: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
displayName: Publish Artifact: helm-chart
inputs:
ArtifactName: 'helm-chart'
PathtoPublish: $(Build.ArtifactStagingDirectory)