File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ - fix-deploy-pipeline
78 schedule :
89 - cron : ' 0 6,18 * * *' # Runs at 6:00 AM and 6:00 PM GMT
910
11+ env :
12+ GPT_MIN_CAPACITY : 1
13+ TEXT_EMBEDDING_MIN_CAPACITY : 1
14+
1015jobs :
1116 deploy :
1217 runs-on : ubuntu-latest
2227 export AZURE_TENANT_ID=${{ secrets.AZURE_TENANT_ID }}
2328 export AZURE_CLIENT_SECRET=${{ secrets.AZURE_CLIENT_SECRET }}
2429 export AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
25- export GPT_MIN_CAPACITY="11"
26- export TEXT_EMBEDDING_MIN_CAPACITY="45"
30+ export GPT_MIN_CAPACITY=${{ env.GPT_MIN_CAPACITY }}
31+ export TEXT_EMBEDDING_MIN_CAPACITY=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }}
2732 export AZURE_REGIONS="${{ vars.AZURE_REGIONS_CA }}"
2833
2934 chmod +x infra/scripts/checkquota.sh
@@ -115,7 +120,7 @@ jobs:
115120 az deployment group create \
116121 --resource-group ${{ env.RESOURCE_GROUP_NAME }} \
117122 --template-file infra/main.bicep \
118- --parameters AzureOpenAILocation=${{ env.AZURE_LOCATION }} environmentName=${{ env.SOLUTION_PREFIX }} cosmosLocation=eastus2
123+ --parameters AzureOpenAILocation=${{ env.AZURE_LOCATION }} environmentName=${{ env.SOLUTION_PREFIX }} cosmosLocation=eastus2 gptDeploymentCapacity=${{ env.GPT_MIN_CAPACITY }} textEmbeddingDeploymentCapacity=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }} \
119124
120125 - name : Get AI Services name and store in variable
121126 id : get_ai_services_name
@@ -180,7 +185,7 @@ jobs:
180185 # echo "Power BI URL updated successfully for application: $application_name."
181186
182187 - name : Delete Bicep Deployment
183- if : success ()
188+ if : always ()
184189 run : |
185190 set -e
186191 echo "Checking if resource group exists..."
You can’t perform that action at this time.
0 commit comments