forked from Azure-Samples/serverless-chat-langchainjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure.yaml
41 lines (37 loc) · 917 Bytes
/
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: serverless-chat-langchainjs
metadata:
template: [email protected]
services:
webapp:
project: ./packages/webapp
dist: dist
language: ts
host: staticwebapp
hooks:
predeploy:
windows:
shell: pwsh
run: npm run build
posix:
shell: sh
run: npm run build
api:
project: ./packages/api
language: ts
host: function
hooks:
postprovision:
windows:
shell: pwsh
run: azd env get-values > packages/api/.env
posix:
shell: sh
run: azd env get-values > packages/api/.env
postup:
windows:
shell: pwsh
run: node scripts/upload-documents.js "$env:UPLOAD_URL"
posix:
shell: sh
run: node scripts/upload-documents.js "$UPLOAD_URL"