Skip to content

Commit bc71573

Browse files
Merge pull request #741 from NirajC-Microsoft/dev-v4
refactor: Update reference in GitHub Actions for MACAE V4
2 parents d76f043 + d3395a9 commit bc71573

7 files changed

Lines changed: 18 additions & 35 deletions

File tree

.github/workflows/deploy-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Deploy-Test-Cleanup (v2) Linux
22
on:
33
workflow_run:
4-
workflows: ["Build Docker and Optional Push v3"]
4+
workflows: ["Build Docker and Optional Push v4"]
55
types:
66
- completed
77
branches:
88
- main
9-
- dev-v3
9+
- dev-v4
1010
- hotfix
1111
workflow_dispatch:
1212
inputs:

.github/workflows/deploy.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/job-deploy-linux.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
set -e
174174
az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
175175
176-
# Set environment variables for team_config_and_data.sh
176+
# Set environment variables for selecting_team_config_and_data.sh
177177
export AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
178178
export AZURE_RESOURCE_GROUP="${{ inputs.RESOURCE_GROUP_NAME }}"
179179
export BACKEND_URL="${{ steps.get_output_linux.outputs.BACKEND_URL }}"
@@ -184,8 +184,10 @@ jobs:
184184
export AZURE_ENV_NAME="${{ steps.get_output_linux.outputs.AZURE_ENV_NAME }}"
185185
186186
# Upload team configurations and index sample data in one step
187-
bash infra/scripts/team_config_and_data.sh "${{ inputs.RESOURCE_GROUP_NAME }}"
188-
187+
# Run PowerShell script with 'All' use case automatically selected
188+
# Provide two inputs: '1' for keeping current subscription, '5' for All use cases
189+
echo -e "1\n5" | pwsh -File infra/scripts/Selecting-Team-Config-And-Data.ps1 -ResourceGroup "${{ env.RESOURCE_GROUP_NAME }}"
190+
189191
- name: Generate Deployment Summary
190192
if: always()
191193
shell: bash

.github/workflows/job-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ jobs:
266266
echo "Current branch: $BRANCH_NAME"
267267
268268
if [[ "$BRANCH_NAME" == "main" ]]; then
269-
IMAGE_TAG="latest_v3"
270-
elif [[ "$BRANCH_NAME" == "dev-v3" ]]; then
271-
IMAGE_TAG="dev_v3"
269+
IMAGE_TAG="latest_v4"
270+
elif [[ "$BRANCH_NAME" == "dev-v4" ]]; then
271+
IMAGE_TAG="dev_v4"
272272
elif [[ "$BRANCH_NAME" == "hotfix" ]]; then
273273
IMAGE_TAG="hotfix"
274274
else
275-
IMAGE_TAG="latest_v3"
275+
IMAGE_TAG="latest_v4"
276276
fi
277277
echo "Using existing Docker image tag: $IMAGE_TAG"
278278
fi

.github/workflows/job-send-notification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
runs-on: ubuntu-latest
7474
continue-on-error: true
7575
env:
76-
accelerator_name: "MACAE V3"
76+
accelerator_name: "MACAE V4"
7777
steps:
7878
- name: Determine Test Suite Display Name
7979
id: test_suite

.github/workflows/test-automation-v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ env:
3131
MACAE_WEB_URL: ${{ inputs.MACAE_WEB_URL }}
3232
MACAE_URL_API: ${{ inputs.MACAE_URL_API }}
3333
MACAE_RG: ${{ inputs.MACAE_RG }}
34-
accelerator_name: "MACAE v3"
34+
accelerator_name: "MACAE v4"
3535

3636
jobs:
3737
test:

.github/workflows/test-automation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
MACAE_URL_API: ${{ inputs.MACAE_URL_API }}
3232
MACAE_RG: ${{ inputs.MACAE_RG }}
3333
MACAE_CONTAINER_APP: ${{ inputs.MACAE_CONTAINER_APP }}
34-
accelerator_name: "MACAE v3"
34+
accelerator_name: "MACAE v4"
3535

3636
steps:
3737
- name: Checkout repository

0 commit comments

Comments
 (0)