Skip to content

Commit

Permalink
Update auto-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shah-zeb-naveed authored Mar 16, 2024
1 parent 828e4ae commit 5ea5772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set defaults
run: az configure --defaults group=testshahzeb && az configure --defaults workspace=mlshah
- name: Create endpoint
run: az ml online-endpoint create --file production/endpoint.yml
run: f az ml online-endpoint show --name mlendpoint1 --query "name" -o tsv > /dev/null 2>&1; then az ml online-endpoint update --name mlendpoint1 --file production/endpoint.yml; else az ml online-endpoint create --file production/endpoint.yml; fi
- name: Update version number
run: latest_version=$(az ml model list --name "model5" --query "[].[version]" -o tsv | sort -n | tail -n 1) && sed -i "s/azureml:model5:[0-9]*/azureml:model5:$latest_version/" production/deployment.yml
- name: Update deployment
Expand Down

0 comments on commit 5ea5772

Please sign in to comment.