-
Notifications
You must be signed in to change notification settings - Fork 701
43 lines (42 loc) · 1.13 KB
/
create-endpoint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: create-endpoint
on:
workflow_call:
inputs:
endpoint_file:
required: true
type: string
resource_group:
required: true
type: string
workspace_name:
required: true
type: string
endpoint_name:
required: true
type: string
endpoint_type:
required: true
type: string
secrets:
creds:
required: true
jobs:
create-endpoint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: "Az CLI login"
uses: azure/login@v1
with:
creds: ${{secrets.creds}}
enable-AzPSSession: true
- name: install-extension
run: az extension add -n ml -y
- name: update-extension
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 }} \
--workspace-name ${{ inputs.workspace_name }}