-
Notifications
You must be signed in to change notification settings - Fork 601
Expand file tree
/
Copy pathazure_custom.yaml
More file actions
107 lines (94 loc) · 3.94 KB
/
azure_custom.yaml
File metadata and controls
107 lines (94 loc) · 3.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: multi-agent-custom-automation-engine-solution-accelerator
metadata:
template: multi-agent-custom-automation-engine-solution-accelerator@1.0
requiredVersions:
azd: '>= 1.18.0 != 1.23.9'
services:
backend:
project: ./src/backend
language: py
host: containerapp
docker:
path: ./Dockerfile.NoCache
image: backend
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
remoteBuild: true
mcp:
project: ./src/mcp_server
language: py
host: containerapp
docker:
image: mcp
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
remoteBuild: true
frontend:
project: ./src/frontend
language: py
host: appservice
dist: ./dist
hooks:
prepackage:
windows:
shell: pwsh
run: ../../infra/scripts/package_frontend.ps1
interactive: true
continueOnError: false
posix:
shell: sh
run: bash ../../infra/scripts/package_frontend.sh
interactive: true
continueOnError: false
hooks:
postdeploy:
windows:
run: |
# Detect if running in Git Bash or similar Bash environment
if ($env:SHELL -like "*bash*" -or $env:MSYSTEM) {
# Running in Git Bash/MSYS2 environment
Write-Host ""
Write-Host "===============================================================" -ForegroundColor Yellow
Write-Host " POST-DEPLOYMENT STEPS (Bash)" -ForegroundColor Green
Write-Host "===============================================================" -ForegroundColor Yellow
Write-Host ""
Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
Write-Host " 👉 Run the following command in Bash:" -ForegroundColor White
Write-Host " bash infra/scripts/selecting_team_config_and_data.sh" -ForegroundColor Cyan
Write-Host ""
Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
Write-Host ""
} else {
# Running in PowerShell
Write-Host ""
Write-Host "===============================================================" -ForegroundColor Yellow
Write-Host " POST-DEPLOYMENT STEP (PowerShell) " -ForegroundColor Green
Write-Host "===============================================================" -ForegroundColor Yellow
Write-Host ""
Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
Write-Host " 👉 Run the following command in PowerShell:" -ForegroundColor White
Write-Host " infra\scripts\Selecting-Team-Config-And-Data.ps1" -ForegroundColor Cyan
Write-Host ""
Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
Write-Host ""
}
shell: pwsh
interactive: true
posix:
run: |
Blue='\033[0;34m'
Green='\033[0;32m'
Yellow='\033[1;33m'
NC='\033[0m'
printf "\n"
printf "${Yellow}===============================================================\n"
printf "${Green} POST-DEPLOYMENT STEPS (Bash)\n"
printf "${Yellow}===============================================================${NC}\n\n"
printf "Upload Team Configurations and index sample data:\n"
printf " 👉 Run the following command in Bash:\n"
printf " ${Blue}bash infra/scripts/selecting_team_config_and_data.sh${NC}\n\n"
printf "🌐 Access your deployed Frontend application at:\n"
printf " ${Blue}https://%s${NC}\n\n" "$webSiteDefaultHostname"
shell: sh
interactive: true