generated from Azure-Samples/mlops-enterprise-template
-
Notifications
You must be signed in to change notification settings - Fork 43
34 lines (29 loc) · 985 Bytes
/
train_model.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
name: Infra Deployment and Training
on:
push:
paths:
- '.github/workflows/train_model.yml'
- 'code/**'
repository_dispatch:
types: [storage-blobcreated, storage-blobdeleted]
jobs:
deployment:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check Out Repository
id: checkout_repository
uses: actions/checkout@v2
# Connect the Azure Machine Learning Workspace
- name: Connect Azure Machine Learning Workspace
id: aml_workspace
uses: Azure/aml-workspace@v1
with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
# Submit a training run to the Azure Machine Learning
- name: Submit training run
id: aml_run
uses: Azure/aml-run@v1
with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}