Skip to content

Commit a939d15

Browse files
fix: post deployment scripts part to include RG and AI Foundry
1 parent d66f6d0 commit a939d15

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: DocGen Deploy-Test-Cleanup Pipeline
22

33
on:
4-
workflow_run:
5-
workflows: ["Build Docker and Optional Push"]
6-
types:
7-
- completed
8-
branches:
9-
- main
10-
- dev
11-
- demo
12-
13-
schedule:
14-
- cron: '0 9,21 * * *' # Runs at 9:00 AM and 9:00 PM GMT
4+
# workflow_run:
5+
# workflows: ["Build Docker and Optional Push"]
6+
# types:
7+
# - completed
8+
# branches:
9+
# - main
10+
# - dev
11+
# - demo
12+
13+
push:
14+
branches:
15+
- deploy-wf-fix
16+
17+
schedule:
18+
- cron: '0 9,21 * * *' # Runs at 9:00 AM and 9:00 PM GMT
1519

1620
env:
1721
GPT_MIN_CAPACITY: 250
@@ -167,6 +171,8 @@ jobs:
167171
echo "KEY_VAULT_NAME=$KEY_VAULT_NAME" >> $GITHUB_ENV
168172
COSMOSDB_ACCOUNT_NAME=$(echo $BICEP_OUTPUT | jq -r '.cosmosdB_ACCOUNT_NAME.value')
169173
echo "COSMOSDB_ACCOUNT_NAME=$COSMOSDB_ACCOUNT_NAME" >> $GITHUB_ENV
174+
AI_FOUNDRY_NAME=$(echo $BICEP_OUTPUT | jq -r '.aI_FOUNDRY_NAME.value')
175+
echo "AI_FOUNDRY_NAME=$AI_FOUNDRY_NAME" >> $GITHUB_ENV
170176
echo "Deployment output: $BICEP_OUTPUT"
171177
172178
- name: Run Post-Deployment Script
@@ -182,6 +188,8 @@ jobs:
182188
"${{ secrets.AZURE_CLIENT_ID }}"
183189
bash ./infra/scripts/run_create_index_scripts.sh \
184190
"${{ env.KEY_VAULT_NAME }}" \
191+
"${{ env.RESOURCE_GROUP_NAME }}" \
192+
"${{ env.AI_FOUNDRY_NAME }}" \
185193
"${{ secrets.AZURE_CLIENT_ID }}"
186194
187195
- name: Logout from Azure

0 commit comments

Comments
 (0)