-
Notifications
You must be signed in to change notification settings - Fork 18
55 lines (46 loc) · 1.71 KB
/
workspace-cd.yaml
File metadata and controls
55 lines (46 loc) · 1.71 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
name: workspace-CD
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- .aml/data/**
- .cloud/**
jobs:
deployment:
environment: dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Load environment from YAML
uses: doughepi/yaml-env-action@v1.0.0
with:
files: .github/variables.yaml
- id: job_preparation
name: Installing dependencies
uses: ./.github/actions/aml-cli-install
with:
componentSupport: false
minVersion: 2.0
- name: Logining in into Azure
uses: Azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- uses: ./.github/actions/azure-arm-template-deployment
name: Workspaces - Deploying resources
with:
resourceGroup: ${RESOURCEGROUPNAME}
location: ${LOCATION}
deploymentName: aml-deployment
templateFile: .cloud/templates/deploy.json
parameters: .cloud/${ENVPREFIX}/deploy.parameters.json computeAdminUserName=${{ secrets.COMPUTEADMINUSERNAME }} computeAdminUserPassword=${{ secrets.COMPUTEADMINUSERPASSWORD }} datasetsClientId=${{ secrets.DATASETSCLIENTID }} datasetsClientSecret=${{ secrets.DATASETSCLIENTSECRET }} secretsManagementObjectId=${{ secrets.AUTOMATION_OBJECT_ID }}
- id: datasets_init
name: Workspaces - Datasets initialization
uses: ./.github/actions/aml-dataset-create
with:
datasetFile: .aml/data/*/dataset.yml
initialize: true
initialDataPath: sample
storageAccount: ${STORAGEACCOUNTNAME}
workspaceName: ${WORKSPACENAME}
resourceGroup: ${RESOURCEGROUPNAME}