Merge pull request #9 from Azure/cli-v2

Cli v2
This commit is contained in:
Cindy Weng 2022-04-11 15:54:52 +01:00 коммит произвёл GitHub
Родитель f52575f3ce 4fadbfbaea
Коммит a836266332
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 63 добавлений и 0 удалений

Просмотреть файл

@ -2,6 +2,12 @@ variables:
ap_vm_image: ubuntu-20.04
# Training pipeline settings - Regression
# Training dataset settings
training_folder_name: data-science-regression
training_script_filename: pipeline.yml
# Training pipeline settings

Просмотреть файл

@ -0,0 +1,57 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
variables:
- template: ../../config-aml.yml
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
# 'main' branch: PRD environment
- template: ../../config-infra-prod.yml
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
value: aml-cli-v2 #must be either 'python-sdk' or 'aml-cli-v2'
trigger:
- none
pool:
vmImage: $(ap_vm_image)
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from Azure when pulling the template
endpoint: mlops-v2-service-connection # need to hardcode
type: github
stages:
- stage: DeployTrainingPipeline
displayName: Deploy Training Pipeline
jobs:
- job: DeployTrainingPipeline
steps:
- checkout: self
path: s/
- checkout: mlops-templates
path: s/templates/
- template: templates/${{ variables.version }}/install-az-cli.yml@mlops-templates
- template: templates/${{ variables.version }}/install-aml-cli.yml@mlops-templates
- template: templates/${{ variables.version }}/connect-to-workspace.yml@mlops-templates
- template: templates/${{ variables.version }}/run-pipeline.yml@mlops-templates
condition: ne(variables['build.sourceBranchName'], 'cli-v2') # Skip for cli-v2
- stage: CreateOnlineEndpoint
displayName: Create Online Endpoint
jobs:
- job: DeployOnlineEndpoint
steps:
- checkout: self
path: s/
- checkout: mlops-templates
path: s/templates/
- template: templates/${{ variables.version }}/install-az-cli.yml@mlops-templates
- template: templates/${{ variables.version }}/install-aml-cli.yml@mlops-templates
- template: templates/${{ variables.version }}/connect-to-workspace.yml@mlops-templates
- template: templates/${{ variables.version }}/create-endpoint.yml@mlops-templates
- template: templates/${{ variables.version }}/test-deployment.yml@mlops-templates