adding bash script to update the test json with random service names
This commit is contained in:
Родитель
9603753e36
Коммит
a7423c3bd4
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "mywebservice",
|
||||
"name": "TESTSERVICENAME",
|
||||
"inference_source_directory": "tests/deploy/",
|
||||
"inference_entry_script": "score.py",
|
||||
"conda_file": "environment.yml",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "aksinttest",
|
||||
"name": "TESTSERVICENAME",
|
||||
"deployment_compute_target": "aks-intTest",
|
||||
"inference_source_directory": "tests/deploy/",
|
||||
"inference_entry_script": "score.py",
|
||||
|
|
|
@ -16,6 +16,10 @@ jobs:
|
|||
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
|
||||
parameters_file: "test/test_workspace.json"
|
||||
|
||||
- name: update Service Name Bashfor ACI
|
||||
run: |
|
||||
sed -i -e 's/TESTSERVICENAME/'aci$RANDOM'/g' .cloud/.azure/test/test_aci_deploy.json
|
||||
|
||||
# Deploy model in Azure Machine Learning to ACI
|
||||
- name: Deploy model
|
||||
id: aml_deploy
|
||||
|
@ -26,6 +30,10 @@ jobs:
|
|||
model_version: 1
|
||||
parameters_file: "test/test_aci_deploy.json"
|
||||
|
||||
- name: update Service Name Bash for AKS
|
||||
run: |
|
||||
sed -i -e 's/TESTSERVICENAME/'aks$RANDOM'/g' .cloud/.azure/test/test_aks_deploy.json
|
||||
|
||||
# Deploy model in Azure Machine Learning to AKS
|
||||
- name: Deploy model
|
||||
id: aml_deploy_aks
|
||||
|
|
Загрузка…
Ссылка в новой задаче