Skip to content

Commit 9117906

Browse files
fix: update deployment environment variables and parameters for quota checks, update deployment deletion condition
1 parent ae90269 commit 9117906

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/CAdeploy.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ on:
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+
1015
jobs:
1116
deploy:
1217
runs-on: ubuntu-latest
@@ -22,8 +27,8 @@ jobs:
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..."

0 commit comments

Comments
 (0)