File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1414env :
1515 GPT_MIN_CAPACITY : 150
1616 TEXT_EMBEDDING_MIN_CAPACITY : 80
17- BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
17+ BRANCH_NAME : ${{ github.event.workflow_run.head_branch || github. head_ref || github.ref_name }}
1818jobs :
1919 deploy :
2020 runs-on : ubuntu-latest
@@ -112,15 +112,15 @@ jobs:
112112 echo "Generated SOLUTION_PREFIX: ${UNIQUE_SOLUTION_PREFIX}"
113113 - name : Determine Tag Name Based on Branch
114114 id : determine_tag
115- run : echo "tagname=${{ github.ref_name == 'main' && 'latest_fdp' || github.ref_name == 'dev' && 'dev' || github.ref_name == 'demo' && 'demo' || github.ref_name == 'dependabotchanges' && 'dependabotchanges' || github.head_ref || 'default ' }}" >> $GITHUB_OUTPUT
115+ run : echo "tagname=${{ github.ref_name == 'main' && 'latest_fdp' || github.ref_name == 'dev' && 'dev' || github.ref_name == 'demo' && 'demo' || github.ref_name == 'dependabotchanges' && 'dependabotchanges' || 'latest_fdp ' }}" >> $GITHUB_OUTPUT
116116 - name : Deploy Bicep Template
117117 id : deploy
118118 run : |
119119 set -e
120120 az deployment group create \
121121 --resource-group ${{ env.RESOURCE_GROUP_NAME }} \
122122 --template-file infra/main.bicep \
123- --parameters solutionName=${{env.SOLUTION_PREFIX}} contentUnderstandingLocation="swedencentral" secondaryLocation="${{ env.AZURE_LOCATION }}" imageTag=${{ steps.determine_tag.outputs.tagname }} gptDeploymentCapacity=150 aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" createdBy="Pipeline"
123+ --parameters solutionName=${{env.SOLUTION_PREFIX}} contentUnderstandingLocation="swedencentral" secondaryLocation="${{ env.AZURE_LOCATION }}" imageTag=${{ steps.determine_tag.outputs.tagname }} gptDeploymentCapacity=150 aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" createdBy="Pipeline" tags="{'SecurityControl':'Ignore'}"
124124
125125
126126
Original file line number Diff line number Diff line change 11// ========== Key Vault ========== //
22targetScope = 'resourceGroup'
33
4- @minLength (3 )
5- @maxLength (16 )
64@description ('Required. Contains Solution Name.' )
75param solutionName string
86
You can’t perform that action at this time.
0 commit comments