diff --git a/classical/aml-cli-v2/mlops/github-actions/deploy-model-training-pipeline-classical.yml b/classical/aml-cli-v2/mlops/github-actions/deploy-model-training-pipeline-classical.yml index e6b6dd4..3a3672b 100644 --- a/classical/aml-cli-v2/mlops/github-actions/deploy-model-training-pipeline-classical.yml +++ b/classical/aml-cli-v2/mlops/github-actions/deploy-model-training-pipeline-classical.yml @@ -17,8 +17,21 @@ jobs: conda_file: data-science/environment/train-conda.yml secrets: creds: ${{secrets.AZURE_CREDENTIALS}} - run-pipeline: + create-compute: needs: [get-config,register-environment] + uses: Azure/mlops-templates/.github/workflows/create-compute.yml@main + with: + cluster_name: cpu-cluster + size: Standard_DS3_v2 + min_instances: 0 + max_instances: 4 + cluster_tier: LowPriority + resource_group: ${{ needs.get-config.outputs.resource_group }} + workspace_name: ${{ needs.get-config.outputs.aml_workspace }} + secrets: + creds: ${{secrets.AZURE_CREDENTIALS}} + run-pipeline: + needs: [get-config,register-environment,create-compute] uses: Azure/mlops-templates/.github/workflows/run-pipeline.yml@main with: resource_group: ${{ needs.get-config.outputs.resource_group }}