-
Notifications
You must be signed in to change notification settings - Fork 628
Expand file tree
/
Copy pathazure.yaml
More file actions
108 lines (103 loc) · 3.46 KB
/
azure.yaml
File metadata and controls
108 lines (103 loc) · 3.46 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
108
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: chat-with-your-data-solution-accelerator
metadata:
template: chat-with-your-data-solution-accelerator@1.7.0
requiredVersions:
azd: '>= 1.18.0 != 1.23.9'
hooks:
postprovision:
# run: ./infra/prompt-flow/create-prompt-flow.sh
posix:
shell: sh
run: chmod +x ./scripts/parse_env.sh && ./scripts/parse_env.sh
windows:
shell: pwsh
run: ./scripts/parse_env.ps1
postdeploy:
windows:
shell: pwsh
run: |
Write-Host ""
Write-Host "=============================================="
Write-Host " Deployment Complete - Post-Deployment Steps"
Write-Host "=============================================="
Write-Host ""
Write-Host "1. Login to Azure CLI (required for post-deployment script):" -ForegroundColor Yellow
Write-Host " az login" -ForegroundColor Cyan
Write-Host ""
Write-Host "2. Run the post-deployment setup script:" -ForegroundColor Yellow
Write-Host " ./scripts/post_deployment_setup.ps1 -ResourceGroupName `"$env:AZURE_RESOURCE_GROUP`"" -ForegroundColor Cyan
Write-Host ""
Write-Host " Or using Bash:" -ForegroundColor Yellow
Write-Host " bash scripts/post_deployment_setup.sh `"$env:AZURE_RESOURCE_GROUP`"" -ForegroundColor Cyan
Write-Host ""
continueOnError: false
interactive: true
posix:
shell: sh
run: |
echo ""
echo "=============================================="
echo " Deployment Complete - Post-Deployment Steps"
echo "=============================================="
echo ""
echo "1. Login to Azure CLI (required for post-deployment script):"
echo " az login"
echo ""
echo "2. Run the post-deployment setup script:"
echo " bash scripts/post_deployment_setup.sh \"$AZURE_RESOURCE_GROUP\""
echo ""
continueOnError: false
interactive: true
services:
web:
project: ./code
language: py
host: appservice
dist: ./dist
# Use resourceName
resourceName: ${SERVICE_WEB_RESOURCE_NAME}
hooks:
prepackage:
windows:
shell: pwsh
run: ./scripts/package_frontend.ps1
interactive: true
continueOnError: false
posix:
shell: sh
run: bash ./scripts/package_frontend.sh
interactive: true
continueOnError: false
adminweb:
project: ./code/backend
language: py
host: appservice
# Use resourceName
resourceName: ${SERVICE_ADMINWEB_RESOURCE_NAME}
hooks:
prepackage:
windows:
shell: pwsh
run: poetry install; poetry export -o requirements.txt
continueOnError: false
posix:
shell: sh
run: poetry install; poetry export -o requirements.txt
continueOnError: false
function:
project: ./code/backend/batch
language: py
host: function
# Use resourceName
resourceName: ${SERVICE_FUNCTION_RESOURCE_NAME}
hooks:
prepackage:
windows:
shell: pwsh
run: poetry export -o requirements.txt --without-hashes; pip install -r requirements.txt
continueOnError: false
posix:
shell: sh
run: poetry export -o requirements.txt --without-hashes; pip install -r requirements.txt
continueOnError: false