-
Notifications
You must be signed in to change notification settings - Fork 18
/
azure-pipelines.yml
60 lines (50 loc) · 1.44 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
53
54
55
56
57
58
59
trigger:
- master
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: 3.7
architecture: 'x64'
- task: DownloadSecureFile@1
inputs:
name: configFile
secureFile: config.json
- script: echo "Printing the secure file path"
- script: cp $(Agent.TempDirectory)/config.json $(Build.SourcesDirectory)/config.json
- task: CondaEnvironment@1
displayName: 'Create Conda Environment '
inputs:
createCustomEnvironment: true
environmentName: knowledge_distillation
packageSpecs: 'python=3.7.3'
updateConda: false
- script: |
pip install --user azureml-sdk
displayName: 'Install prerequisites'
- task: AzureCLI@1
displayName: 'Build and Publish Teacher Pipeline'
inputs:
azureSubscription: 'serviceConnection'
scriptLocation: inlineScript
inlineScript: 'python pipeline_teacher.py'
- task: AzureCLI@1
displayName: 'Build and Publish Student Pipeline'
inputs:
azureSubscription: 'serviceConnection'
scriptLocation: inlineScript
inlineScript: 'python pipeline_student.py'
- task: AzureCLI@1
displayName: 'Run Published Pipelines'
timeoutInMinutes: 120
inputs:
azureSubscription: 'serviceConnection'
scriptLocation: inlineScript
inlineScript: 'python run_pipelines.py'
- task: AzureCLI@1
displayName: 'Deploy Webservice'
inputs:
azureSubscription: 'serviceConnection'
scriptLocation: inlineScript
inlineScript: 'python deploy_aci.py'