diff --git a/bootstrap/bootstrap.py b/bootstrap/bootstrap.py index 6e51b50..e26a571 100644 --- a/bootstrap/bootstrap.py +++ b/bootstrap/bootstrap.py @@ -84,9 +84,13 @@ def replace_project_name(project_dir, project_name, rename_name): files = [r".env.example", r".pipelines/code-quality-template.yml", r".pipelines/pr.yml", + r".pipelines/diabetes_regression-cd-deploy.yml", + r".pipelines/diabetes_regression-ci-train-register.yml", r".pipelines/diabetes_regression-ci.yml", r".pipelines/abtest.yml", r".pipelines/diabetes_regression-ci-image.yml", + r".pipelines/diabetes_regression-publish-model-artifact-template.yml", + r".pipelines/diabetes_regression-get-model-id-artifact-template.yml", r".pipelines/diabetes_regression-get-model-version-template.yml", # NOQA: E501 r".pipelines/diabetes_regression-variables-template.yml", r"environment_setup/Dockerfile", diff --git a/docs/images/model-deploy-artifact-logs.PNG b/docs/images/model-deploy-artifact-logs.PNG new file mode 100644 index 0000000..2dfee30 Binary files /dev/null and b/docs/images/model-deploy-artifact-logs.PNG differ diff --git a/docs/split_cicd_pipelines.md b/docs/split_cicd_pipelines.md index 7facaa1..a0071d7 100644 --- a/docs/split_cicd_pipelines.md +++ b/docs/split_cicd_pipelines.md @@ -81,14 +81,14 @@ This pipeline has the following behaviors: - The pipeline will **automatically trigger** on completion of the Model-Train-Register-CI pipeline - The pipeline will default to using the latest successful build of the Model-Train-Register-CI pipeline. It will deploy the model produced by that build. - - You can specify a build ID when running the pipeline manually. +- You can specify a `Model-Train-Register-CI` build ID when running the pipeline manually. You can find this in the url of the build, and the model registered from that build will also be tagged with the build ID. ### Set up the pipeline In your Azure DevOps project, create and run a new build pipeline based on the [diabetes_regression-cd-deploy.yml](../.pipelines/diabetes_regression-cd-deploy.yml) pipeline definition in your forked repository. -Your first run will use the latest model created by the Model-Train-Register-CI pipeline. +Your first run will use the latest model created by the `Model-Train-Register-CI` pipeline. Once the pipeline is finished, check the execution result: @@ -98,6 +98,10 @@ To specify a particular build's model, set the `Model Train CI Build Id` paramet ![Build](./images/model-deploy-configure.png) +Once your pipeline run begins, you can see the model name and version downloaded from the `Model-Train-Register-CI` pipeline. + +![Build](./images/model-deploy-artifact-logs.png) + The pipeline has the following stage: #### Deploy to ACI