forked from Azure/mlops-v2-gha-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 loc) · 2.1 KB
/
tf-gha-deploy-infra.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
44
45
name: tf-gha-deploy-infra.yml
on:
workflow_dispatch:
env:
config_env: 'none'
jobs:
get-config:
uses: Azure/mlops-templates/.github/workflows/read-yaml.yml@main
with:
file_name: config-infra-prod.yml
test-terraform-state-deployment:
needs: get-config
uses: Azure/mlops-templates/.github/workflows/tf-gha-install-terraform.yml@main
with:
TFAction: 'apply'
dply_environment: ${{ needs.set-env-branch.outputs.config-file }}
location: ${{ needs.get-config.outputs.location }}
namespace: ${{ needs.get-config.outputs.namespace }}
postfix: ${{ needs.get-config.outputs.postfix }}
environment: ${{ needs.get-config.outputs.environment }}
enable_aml_computecluster: ${{ needs.get-config.outputs.enable_aml_computecluster == true }} ## TBD review the evaluation of boolean
enable_monitoring: ${{ needs.get-config.outputs.enable_monitoring == true }} ## TBD review the evaluation of boolean
terraform_version: ${{ needs.get-config.outputs.terraform_version }}
terraform_workingdir: ${{ needs.get-config.outputs.terraform_workingdir }}
terraform_st_location: ${{ needs.get-config.outputs.terraform_st_location }}
terraform_st_storage_account: ${{ needs.get-config.outputs.terraform_st_storage_account }}
terraform_st_resource_group: ${{ needs.get-config.outputs.terraform_st_resource_group }}
terraform_st_container_name: ${{ needs.get-config.outputs.terraform_st_container_name }}
terraform_st_key: ${{ needs.get-config.outputs.terraform_st_key }}
terraform_plan_location: ${{ needs.get-config.outputs.location }}
terraform_plan_vnet: "TBD" # TBD
secrets:
azure_creds: ${{ secrets.AZURE_CREDENTIALS }}
clientId: ${{ secrets.ARM_CLIENT_ID }}
clientSecret: ${{ secrets.ARM_CLIENT_SECRET }}
subscriptionId: ${{ secrets.ARM_SUBSCRIPTION_ID }}
tenantId: ${{ secrets.ARM_TENANT_ID }}
deploy-azureml-resources:
runs-on: ubuntu-latest
steps:
- id: deploy-aml-workspace
name: deploy-aml-workspace
run: echo "OK"