@@ -126,7 +126,7 @@ jobs:
126126 elif [[ "${{ env.BRANCH_NAME }}" == "hotfix" ]]; then
127127 IMAGE_TAG="hotfix"
128128 else
129- IMAGE_TAG="latest_v3 "
129+ IMAGE_TAG="latest_v4 "
130130 fi
131131
132132 # Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
@@ -183,28 +183,9 @@ jobs:
183183
184184 echo "Running post-deployment script..."
185185
186- # Extract required resource names from the deployment
187- STORAGE_ACCOUNT=$(az resource list --resource-group ${{ env.RESOURCE_GROUP_NAME }} --resource-type "Microsoft.Storage/storageAccounts" --query "[0].name" -o tsv)
188- AI_SEARCH=$(az resource list --resource-group ${{ env.RESOURCE_GROUP_NAME }} --resource-type "Microsoft.Search/searchServices" --query "[0].name" -o tsv)
189-
190- echo "Found Storage Account: $STORAGE_ACCOUNT"
191- echo "Found AI Search Service: $AI_SEARCH"
192- echo "Backend URL: ${{ steps.get_backend_url.outputs.MACAE_URL_API }}"
193-
194- # Run upload team config script with parameters
195- bash infra/scripts/upload_team_config.sh \
196- "${{ steps.get_backend_url.outputs.MACAE_URL_API }}" \
197- "data/agent_teams" \
198- "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
199-
200- # Run process sample data script with parameters
201- bash infra/scripts/process_sample_data.sh \
202- "$STORAGE_ACCOUNT" \
203- "sample-dataset" \
204- "$AI_SEARCH" \
205- "sample-dataset-index" \
206- "${{ env.RESOURCE_GROUP_NAME }}" \
207- "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
186+ # Run PowerShell script with 'All' use case automatically selected
187+ # Provide two inputs: '1' for keeping current subscription, '5' for All use cases
188+ echo -e "1\n5" | pwsh -File infra/scripts/Selecting-Team-Config-And-Data.ps1 -ResourceGroup "${{ env.RESOURCE_GROUP_NAME }}"
208189
209190 echo "=== Post-Deployment Script Completed Successfully ==="
210191
0 commit comments