diff --git a/.azuredevops/initialise-project.yml b/.azuredevops/initialise-project.yml index e8e3027..ff395f6 100644 --- a/.azuredevops/initialise-project.yml +++ b/.azuredevops/initialise-project.yml @@ -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 }} diff --git a/.azuredevops/scripts/initialise_repo.sh b/.azuredevops/scripts/initialise_repo.sh index 408e485..94f4974 100644 --- a/.azuredevops/scripts/initialise_repo.sh +++ b/.azuredevops/scripts/initialise_repo.sh @@ -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 diff --git a/documentation/deployguides/images/ado-parameters-pipeline.png b/documentation/deployguides/images/ado-parameters-pipeline.png index c212aee..729b94c 100644 Binary files a/documentation/deployguides/images/ado-parameters-pipeline.png and b/documentation/deployguides/images/ado-parameters-pipeline.png differ