forked from microsoft/MLOps_VideoAnomalyDetection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
43 lines (37 loc) · 1.2 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
trigger:
- master
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: 3.6
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: prednet
packageSpecs: 'python=3.6'
updateConda: false
- script: |
pip install --user azureml-sdk azure-storage-blob --extra-index-url https://azuremlsdktestpypi.azureedge.net/sdk-release/Candidate/604C89A437BA41BD942B4F46D9A3591D,
displayName: 'Install prerequisites'
- task: AzureCLI@1
displayName: 'Disable existing pipelines'
inputs:
azureSubscription: 'serviceConnection'
scriptLocation: inlineScript
inlineScript: 'python utils.py --disable-pipelines'
- task: AzureCLI@1
displayName: 'Build and Publish Pipelines'
inputs:
azureSubscription: 'serviceConnection'
scriptLocation: inlineScript
inlineScript: 'python pipelines_master.py'