-
Notifications
You must be signed in to change notification settings - Fork 178
/
azure.yaml
79 lines (78 loc) · 2.2 KB
/
azure.yaml
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: azure-gpt-rag
metadata:
template: azure-gpt-rag
services:
dataIngest:
# project is temporally pulled fro its repo during deployment.
project: ./.azure/gpt-rag-ingestion
language: python
host: function
hooks:
postdeploy:
posix:
# this path is relative to ./.azure/gpt-rag-ingestion
run: scripts/postdeploy.sh
interactive: false
windows:
# this path is relative to ./.azure/gpt-rag-ingestion
run: scripts/postdeploy.ps1
interactive: false
orchestrator:
project: ./.azure/gpt-rag-orchestrator
language: python
host: function
frontend:
# backend is python and frontend is Vite app. The frontend is built with Vite settings to output into the backend's static folder.
project: ./.azure/gpt-rag-frontend/backend
language: python
host: appservice
hooks:
prepackage:
windows:
shell: pwsh
run: cd ../frontend;npm install;npm run build
interactive: false
continueOnError: false
posix:
shell: sh
run: cd ../frontend;npm install;npm run build
interactive: false
continueOnError: false
hooks:
# Components are pulled from their own repo for deployment but are not persisted to this repo.
prepackage:
posix:
run: scripts/fetchComponents.sh
interactive: false
windows:
run: scripts/fetchComponents.ps1
interactive: false
preprovision:
windows:
run: scripts/preprovision.ps1
interactive: true
posix:
run: scripts/preprovision.sh
interactive: true
postprovision:
posix:
run: scripts/postprovision.sh
interactive: true
windows:
run: scripts/postprovision.ps1
interactive: true
predeploy:
posix:
run: scripts/preDeploy.sh
interactive: true
windows:
run: scripts/preDeploy.ps1
interactive: true
postdeploy:
posix:
run: scripts/cleanComponents.sh
interactive: false
windows:
run: scripts/cleanComponents.ps1
interactive: false