Skip to content

Commit 6d02555

Browse files
authored
Fix CD deployment break (#305)
Recently the step to get the model version had a name associated with the step. We need to also update the references in future step to use the step name as a prefix. This resulted in the MODEL_VERSION variable causing failures in each CD deployment step. This did not show up in CI because the MODEL_VERSION var is hard coded in the variable group. We should also remove that.
1 parent 0906986 commit 6d02555

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.pipelines/diabetes_regression-cd.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ stages:
5959
inlineScript: |
6060
set -e # fail on error
6161
62-
az ml model deploy --name $(ACI_DEPLOYMENT_NAME) --model '$(MODEL_NAME):$(MODEL_VERSION)' \
62+
az ml model deploy --name $(ACI_DEPLOYMENT_NAME) --model '$(MODEL_NAME):$(get_model.MODEL_VERSION)' \
6363
--ic inference_config.yml \
6464
--dc deployment_config_aci.yml \
6565
-g $(RESOURCE_GROUP) --workspace-name $(WORKSPACE_NAME) \
@@ -105,7 +105,7 @@ stages:
105105
inlineScript: |
106106
set -e # fail on error
107107
108-
az ml model deploy --name $(AKS_DEPLOYMENT_NAME) --model '$(MODEL_NAME):$(MODEL_VERSION)' \
108+
az ml model deploy --name $(AKS_DEPLOYMENT_NAME) --model '$(MODEL_NAME):$(get_model.MODEL_VERSION)' \
109109
--compute-target $(AKS_COMPUTE_NAME) \
110110
--ic inference_config.yml \
111111
--dc deployment_config_aks.yml \
@@ -137,7 +137,7 @@ stages:
137137
artifactBuildId: ${{ parameters.artifactBuildId }}
138138
- template: diabetes_regression-package-model-template.yml
139139
parameters:
140-
modelId: $(MODEL_NAME):$(MODEL_VERSION)
140+
modelId: $(MODEL_NAME):$(get_model.MODEL_VERSION)
141141
scoringScriptPath: '$(Build.SourcesDirectory)/$(SOURCES_DIR_TRAIN)/scoring/score.py'
142142
condaFilePath: '$(Build.SourcesDirectory)/$(SOURCES_DIR_TRAIN)/conda_dependencies.yml'
143143
- script: echo $(IMAGE_LOCATION) >image_location.txt

0 commit comments

Comments
 (0)