Skip to content

Commit

Permalink
simulates changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Santhosha Rajashekar committed Jun 9, 2024
1 parent 7bb3e01 commit ec77083
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy-model-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy Model Manually #intrdouced for quick testing

on:
pull_request_target:
types: [labeled]

env:
workspace-name: aml-ws-mlops
resource-group: rg-mlops
job-name: amusing_jackal_9w9m3ls2b2
model-name: azureml_amusing_jackal_9w9m3ls2b2_output_mlflow_log_model_583397521

permissions:
id-token: write
contents: read

jobs:
deploy-model:
name: Deploy Model
if: github.event.label.name == 'deploy-model'
runs-on: ubuntu-latest
environment:
name: prod
steps:
- name: Check out repo
uses: actions/checkout@main
- name: Install az ml extension
run: az extension add -n ml -y
- name: "Az CLI login"
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Trigger Azure ML job
run: az ml online-deployment create -f src/deploy-endpoint.yml --all-traffic --workspace-name ${{ env.workspace-name }} --resource-group ${{ env.resource-group }}

0 comments on commit ec77083

Please sign in to comment.