Modify ADO repo initialize script to support different repo names (#110)
* Modify ADO repo init to support different repo names * Documentation changes and ADO pipeline display update * Higher quality ado param screenshot
This commit is contained in:
Родитель
0b615aa553
Коммит
7d9e098bf9
|
@ -4,7 +4,7 @@ name: Initialize ${{ parameters.repoName }} repo
|
|||
|
||||
parameters:
|
||||
- name: adoProjectName
|
||||
displayName: Azure DevOps ProjectName
|
||||
displayName: Azure DevOps Project Name
|
||||
type: string
|
||||
|
||||
- name: repoName
|
||||
|
@ -16,6 +16,11 @@ parameters:
|
|||
# type: string
|
||||
# # default: [good idea to put your default here]
|
||||
|
||||
- name: mlopsRepoName
|
||||
displayName: MLOps-V2 ADO Repository name
|
||||
type: string
|
||||
default: mlops-v2
|
||||
|
||||
- name: mlOpsProjectRepoName
|
||||
displayName: MLOps Project Template's repo
|
||||
type: string
|
||||
|
@ -68,16 +73,16 @@ stages:
|
|||
displayName: Run script to initialise your repo
|
||||
inputs:
|
||||
targetType: "filePath"
|
||||
filePath: mlops-v2/.azuredevops/scripts/initialise_repo.sh
|
||||
filePath: ${{ parameters.mlopsRepoName }}/.azuredevops/scripts/initialise_repo.sh
|
||||
arguments: >
|
||||
${{ parameters.repoName }} ${{ parameters.projectType }} ${{ parameters.mlopsVersion }} ${{ parameters.infrastructure_version}}
|
||||
${{ parameters.repoName }} ${{ parameters.projectType }} ${{ parameters.mlopsVersion }} ${{ parameters.mlOpsProjectRepoName }} ${{ parameters.infrastructure_version}}
|
||||
|
||||
|
||||
- task: Bash@3
|
||||
displayName: Run script to create pipelines in ADO
|
||||
inputs:
|
||||
targetType: "filePath"
|
||||
filePath: mlops-v2/.azuredevops/scripts/create_ado_pipelines.sh
|
||||
filePath: ${{ parameters.mlopsRepoName }}/.azuredevops/scripts/create_ado_pipelines.sh
|
||||
arguments: >
|
||||
${{ parameters.repoName }} ${{ parameters.adoProjectName }}
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
repo_name=$1
|
||||
project_type=$2
|
||||
mlops_version=$3
|
||||
template_repo=$4
|
||||
#infrastructure_version=bicep #options: terraform / bicep
|
||||
infrastructure_version=$4 #options: terraform / bicep
|
||||
infrastructure_version=$5 #options: terraform / bicep
|
||||
|
||||
git config --global user.email "hosted.agent@dev.azure.com"
|
||||
git config --global user.name "Azure Pipeline"
|
||||
|
@ -10,13 +11,13 @@ git config --global user.name "Azure Pipeline"
|
|||
mkdir files_to_keep
|
||||
mkdir files_to_delete
|
||||
|
||||
cd mlops-project-template
|
||||
cd $template_repo
|
||||
cp --parents -r infrastructure/$infrastructure_version ../files_to_keep
|
||||
cp --parents -r $project_type/$mlops_version ../files_to_keep
|
||||
cp config-infra-dev.yml ../files_to_keep
|
||||
cp config-infra-prod.yml ../files_to_keep
|
||||
cd ..
|
||||
mv mlops-project-template/* files_to_delete
|
||||
mv $template_repo/* files_to_delete
|
||||
|
||||
cd $repo_name
|
||||
git checkout -b main
|
||||
|
|
Двоичные данные
documentation/deployguides/images/ado-parameters-pipeline.png
Двоичные данные
documentation/deployguides/images/ado-parameters-pipeline.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 183 KiB После Ширина: | Высота: | Размер: 57 KiB |
Загрузка…
Ссылка в новой задаче