-
Notifications
You must be signed in to change notification settings - Fork 17
/
azure-pipelines.yml
41 lines (39 loc) · 1017 Bytes
/
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
trigger:
branches:
include:
- master
paths:
exclude:
- '*.md'
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
displayName: Setting Python Version...
- script: cd azureml && pip install -r requirements.txt
displayName: 'Installing dependencies...'
- task: DockerInstaller@0
inputs:
dockerVersion: '17.09.0-ce'
displayName: Installing Docker...
- task: AzureCLI@2
inputs:
azureSubscription: 'MMLSpark Connection'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
python3 deploy_score_aks.py
displayName: Deploying Inference Service...
- script: python call_service.py
displayName: Checking if inference service is online...
- task: AzureCLI@2
inputs:
azureSubscription: 'MMLSpark Connection'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
cd ../backend
az webapp up --name mosaicart
displayName: Deploying Facebook Sharing Service...