forked from pablomarin/GPT-Azure-Search-Engine
-
Notifications
You must be signed in to change notification settings - Fork 554
/
azure.yaml
77 lines (73 loc) · 2.79 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
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
# This is an example starter azure.yaml file containing several example services in comments below.
# Make changes as needed to describe your application setup.
# To learn more about the azure.yaml file, visit https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/azd-schema
# Name of the application.
name: Azure-Cognitive-Search-Azure-OpenAI-Accelerator
hooks:
preup:
windows:
shell: pwsh
run: ./infra/scripts/CreatePrerequisites.ps1
interactive: true
continueOnError: false
posix:
shell: pwsh
run: ./infra/scripts/CreatePrerequisites.ps1
interactive: true
continueOnError: false
preprovision:
windows:
shell: pwsh
run: ./infra/scripts/CreateAppRegistration.ps1
interactive: true
continueOnError: false
posix:
shell: pwsh
run: ./infra/scripts/CreateAppRegistration.ps1
interactive: true
continueOnError: false
postprovision:
windows:
shell: pwsh
run: ./infra/scripts/UpdateSecretsInApps.ps1
interactive: true
continueOnError: false
posix:
shell: pwsh
run: ./infra/scripts/UpdateSecretsInApps.ps1
interactive: true
continueOnError: false
services:
backend:
project: ./infra/target/backend
language: py
host: appservice
hooks:
prepackage:
windows:
shell: pwsh
run: Remove-Item * -Recurse;Copy-Item -Path "../../../apps/backend/*" -Destination "./" -force;Copy-Item -Path "../../../common/*" -Destination "./" -Recurse -force;pip install -r requirements.txt
interactive: true
continueOnError: false
posix:
shell: pwsh
run: 'Remove-Item * -Recurse;Copy-Item -Path "../../../apps/backend/*" -Destination "./" -force;Copy-Item -Path "../../../common/*" -Destination "./" -Recurse -force;pip install -r requirements.txt'
interactive: true
continueOnError: false
frontend:
project: ./infra/target/frontend
language: py
host: appservice
hooks:
prepackage:
windows:
shell: pwsh
run: Remove-Item * -Recurse; Copy-Item -Path "../../../apps/frontend/*" -Destination "./" -Recurse -Force; Copy-Item -Path "../../../common/*" -Destination "./" -Recurse -force;pip install -r requirements.txt
interactive: true
continueOnError: false
posix:
shell: pwsh
run: 'Remove-Item * -Recurse; Copy-Item -Path "../../../apps/frontend/*" -Destination "./" -Recurse -Force; Copy-Item -Path "../../../common/*" -Destination "./" -Recurse -force;pip install -r requirements.txt'
interactive: true
continueOnError: false