Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added manual trigger yml and included endpoint deployment #75

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/create-endpoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: create-endpoint
on:
workflow_call:
inputs:
endpoint_file:
required: true
type: string
resource_group:
required: true
type: string
Expand All @@ -18,6 +15,9 @@ on:
endpoint_type:
required: true
type: string
endpoint_auth_mode:
required: true
type: string
secrets:
creds:
required: true
Expand All @@ -38,6 +38,6 @@ jobs:
run: az extension update -n ml
- name: create-environment-from-file
run: |
az ml ${{ inputs.endpoint_type }}-endpoint create --name ${{ inputs.endpoint_name }} \
-f ${{ github.workspace }}/${{ inputs.endpoint_file }} --resource-group ${{ inputs.resource_group }} \
az ml ${{ inputs.endpoint_type }}-endpoint create -n ${{ inputs.endpoint_name }} \
--auth_mode ${{ inputs.endpoint_auth_mode }} --resource-group ${{ inputs.resource_group }} \
--workspace-name ${{ inputs.workspace_name }}
36 changes: 36 additions & 0 deletions .github/workflows/manual-end-to-end-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: manual-end-to-end-deployment

on:
workflow_dispatch:
inputs:
resource_group:
description: 'The resource group of the Azure Machine Learning workspace'
required: true
type: string
workspace_name:
description: 'The name of the Azure Machine Learning workspace'
required: true
type: string
endpoint_name:
description: 'The name of the endpoint'
required: true
type: string
endpoint_type:
description: 'The type of the endpoint [batch, online]'
required: true
type: string
endpoint_auth_mode:
description: 'The authentication mode of the endpoint [aad_token, aml_token, key]'
required: true
type: string
jobs:
call-create-endpoint:
uses: ./.github/workflows/create-endpoint.yml
with:
resource_group: ${{ github.event.inputs.resource_group }}
workspace_name: ${{ github.event.inputs.workspace_name }}
endpoint_name: ${{ github.event.inputs.endpoint_name }}
endpoint_type: ${{ github.event.inputs.endpoint_type }}
endpoint_auth_mode: ${{ github.event.inputs.endpoint_file }}
secrets:
creds: ${{ secrets.AZURE_CREDENTIALS }}
3 changes: 3 additions & 0 deletions src/sample-project/endpoint-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineEndpoint.schema.json
name: sample-project-aad-endpoint
auth_mode: aad_token