File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,6 +171,38 @@ jobs:
171171 echo "MACAE_URL_API=https://${MACAE_URL_API}" >> $GITHUB_OUTPUT
172172 echo "CONTAINER_APP=${CONTAINER_APP_NAME}" >> $GITHUB_OUTPUT
173173
174+ - name : Run Post deployment scripts
175+ run : |
176+ set -e
177+ az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
178+
179+ echo "Running post-deployment script..."
180+
181+ # Extract required resource names from the deployment
182+ STORAGE_ACCOUNT=$(az resource list --resource-group ${{ env.RESOURCE_GROUP_NAME }} --resource-type "Microsoft.Storage/storageAccounts" --query "[0].name" -o tsv)
183+ AI_SEARCH=$(az resource list --resource-group ${{ env.RESOURCE_GROUP_NAME }} --resource-type "Microsoft.Search/searchServices" --query "[0].name" -o tsv)
184+
185+ echo "Found Storage Account: $STORAGE_ACCOUNT"
186+ echo "Found AI Search Service: $AI_SEARCH"
187+ echo "Backend URL: ${{ steps.get_backend_url.outputs.MACAE_URL_API }}"
188+
189+ # Run upload team config script with parameters
190+ bash infra/scripts/upload_team_config.sh \
191+ "${{ steps.get_backend_url.outputs.MACAE_URL_API }}" \
192+ "data/agent_teams" \
193+ "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
194+
195+ # Run process sample data script with parameters
196+ bash infra/scripts/process_sample_data.sh \
197+ "$STORAGE_ACCOUNT" \
198+ "documents" \
199+ "$AI_SEARCH" \
200+ "sample-dataset-index" \
201+ "${{ env.RESOURCE_GROUP_NAME }}" \
202+ "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
203+
204+ echo "=== Post-Deployment Script Completed Successfully ==="
205+
174206 - name : Set Deployment Status
175207 id : deployment_status
176208 if : always()
You can’t perform that action at this time.
0 commit comments