ADO pipelines require github service conn

This commit is contained in:
Scott Donohoo 2023-04-04 12:56:34 -05:00
Родитель 547e6ee9ba
Коммит a1f64a9ff9
18 изменённых файлов: 495 добавлений и 529 удалений

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

@ -2,37 +2,34 @@
# Licensed under the MIT License.
variables:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
# 'main' branch: PRD environment
- template: ../../config-infra-prod.yml
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
- name: version
value: aml-cli-v2
- name: endpoint_name
- name: endpoint_name
value: taxi2-batch-$(namespace)$(postfix)$(environment)
- name: endpoint_type
- name: endpoint_type
value: batch
trigger:
- none
- none
pool:
vmImage: ubuntu-20.04
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:
- stage: CreateBatchEndpoint
- stage: CreateBatchEndpoint
displayName: Create/Update Batch Endpoint
jobs:
- job: DeployBatchEndpoint

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

@ -20,9 +20,8 @@ pool:
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:

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

@ -2,37 +2,34 @@
# Licensed under the MIT License.
variables:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
# 'main' branch: PRD environment
- template: ../../config-infra-prod.yml
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
- name: version
value: aml-cli-v2
- name: endpoint_name
- name: endpoint_name
value: taxi-online-$(namespace)$(postfix)$(environment)
- name: endpoint_type
- name: endpoint_type
value: online
trigger:
- none
- none
pool:
vmImage: ubuntu-20.04
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:
- stage: CreateOnlineEndpoint
- stage: CreateOnlineEndpoint
displayName: Create/Update Online Endpoint
jobs:
- job: DeployOnlineEndpoint

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

@ -2,18 +2,18 @@
# Licensed under the MIT License.
variables:
- template: ../../config-aml.yml
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- 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') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
- name: version
value: python-sdk-v1
trigger:
- none
- none
pool:
vmImage: $(ap_vm_image)
@ -21,13 +21,12 @@ pool:
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:
- stage: DeployBatchScoringPipeline
- stage: DeployBatchScoringPipeline
displayName: Deploy Batch Scoring Pipeline
jobs:
- job: DeployBatchScoringPipeline
@ -42,7 +41,7 @@ stages:
- template: templates/${{ variables.version }}/create-environment.yml@mlops-templates
parameters:
environment_name: $(batch_env_name)
build_type: 'conda'
build_type: "conda"
environment_file: $(batch_env_conda_yaml)
enable_monitoring: $(enable_monitoring)
- template: templates/${{ variables.version }}/register-dataset.yml@mlops-templates

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

@ -2,18 +2,18 @@
# Licensed under the MIT License.
variables:
- template: ../../config-aml.yml
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- 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') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
- name: version
value: python-sdk-v1
trigger:
- none
- none
pool:
vmImage: $(ap_vm_image)
@ -21,13 +21,12 @@ pool:
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from Azure when pulling the template
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:
- stage: DeployTrainingPipeline
- stage: DeployTrainingPipeline
displayName: Deploy Training Pipeline
jobs:
- job: DeployTrainingPipeline
@ -42,7 +41,7 @@ stages:
- template: templates/${{ variables.version }}/create-environment.yml@mlops-templates
parameters:
environment_name: $(training_env_name)
build_type: 'conda'
build_type: "conda"
environment_file: $(training_env_conda_yaml)
enable_monitoring: $(enable_monitoring)
- template: templates/${{ variables.version }}/register-dataset.yml@mlops-templates

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

@ -22,9 +22,8 @@ pool:
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:

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

@ -20,9 +20,8 @@ pool:
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:

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

@ -22,9 +22,8 @@ pool:
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:

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

@ -2,37 +2,34 @@
# Licensed under the MIT License.
variables:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
# 'main' branch: PRD environment
- template: ../../config-infra-prod.yml
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
- name: version
value: aml-cli-v2
- name: endpoint_name
- name: endpoint_name
value: taxi-batch-$(namespace)$(postfix)$(environment)
- name: endpoint_type
- name: endpoint_type
value: batch
trigger:
- none
- none
pool:
vmImage: ubuntu-20.04
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:
- stage: CreateBatchEndpoint
- stage: CreateBatchEndpoint
displayName: Create/Update Batch Endpoint
jobs:
- job: DeployBatchEndpoint

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

@ -20,9 +20,8 @@ pool:
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
- repository: rai-vnext-preview # Template Repo
name: Azure/rai-vnext-preview # need to change org name from "Azure" to your own org

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

@ -2,37 +2,34 @@
# Licensed under the MIT License.
variables:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
# 'main' branch: PRD environment
- template: ../../config-infra-prod.yml
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
- name: version
value: aml-cli-v2
- name: endpoint_name
- name: endpoint_name
value: taxi-online-$(namespace)$(postfix)$(environment)
- name: endpoint_type
- name: endpoint_type
value: online
trigger:
- none
- none
pool:
vmImage: ubuntu-20.04
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:
- stage: CreateOnlineEndpoint
- stage: CreateOnlineEndpoint
displayName: Create/Update Online Endpoint
jobs:
- job: DeployOnlineEndpoint

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

@ -2,33 +2,30 @@
# Licensed under the MIT License.
variables:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
# 'main' branch: PRD environment
- template: ../../config-infra-prod.yml
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
- name: version
value: aml-cli-v2
trigger:
- none
- none
pool:
vmImage: ubuntu-20.04
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:
- stage: DeployTrainingPipeline
- stage: DeployTrainingPipeline
displayName: Deploy Training Pipeline
jobs:
- job: DeployTrainingPipeline

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

@ -2,37 +2,34 @@
# Licensed under the MIT License.
variables:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
# 'main' branch: PRD environment
- template: ../../config-infra-prod.yml
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
- name: version
value: aml-cli-v2
- name: endpoint_name
- name: endpoint_name
value: dogs-online-$(namespace)$(postfix)$(environment)
- name: endpoint_type
- name: endpoint_type
value: online
trigger:
- none
- none
pool:
vmImage: ubuntu-20.04
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:
- stage: CreateOnlineEndpoint
- stage: CreateOnlineEndpoint
displayName: Create/Update Online Endpoint
jobs:
- job: DeployOnlineEndpoint

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

@ -21,9 +21,8 @@ pool:
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:

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

@ -2,28 +2,27 @@
# Licensed under the MIT License.
variables:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
# 'main' branch: PRD environment
- template: ../../config-infra-prod.yml
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
trigger:
- none
- none
pool:
vmImage: ubuntu-20.04
resources:
repositories:
- repository: mlops-templates
name: Azure/mlops-templates
endpoint: github-connection
type: github
ref: main #branch name
- repository: mlops-templates # Template Repo
name: mlops-templates
type: git
ref: main
stages :
stages:
- stage: CreateStorageAccountForTerraformState
displayName: Create Storage for Terraform
jobs:

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

@ -2,33 +2,30 @@
# Licensed under the MIT License.
variables:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
# 'main' branch: PRD environment
- template: ../../config-infra-prod.yml
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
- name: version
value: aml-cli-v2
trigger:
- none
- none
pool:
vmImage: ubuntu-20.04
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:
- stage: DeployTrainingPipeline
- stage: DeployTrainingPipeline
displayName: Deploy Training Pipeline
jobs:
- job: DeployTrainingPipeline

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

@ -2,37 +2,34 @@
# Licensed under the MIT License.
variables:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
# 'main' branch: PRD environment
- template: ../../config-infra-prod.yml
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
- ${{ if ne(variables['Build.SourceBranchName'], 'main') }}:
# 'develop' or feature branches: DEV environment
- template: ../../config-infra-dev.yml
- name: version
- name: version
value: aml-cli-v2
- name: endpoint_name
- name: endpoint_name
value: nlp-online-$(namespace)$(postfix)$(environment)
- name: endpoint_type
- name: endpoint_type
value: online
trigger:
- none
- none
pool:
vmImage: ubuntu-20.04
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages:
- stage: CreateOnlineEndpoint
- stage: CreateOnlineEndpoint
displayName: Create/Update Online Endpoint
jobs:
- job: DeployOnlineEndpoint

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

@ -20,9 +20,8 @@ pool:
resources:
repositories:
- repository: mlops-templates # Template Repo
name: Azure/mlops-templates # need to change org name from "Azure" to your own org
endpoint: github-connection # need to set up and hardcode
type: github
name: mlops-templates
type: git
ref: main
stages: