-
Notifications
You must be signed in to change notification settings - Fork 83
/
azure.yaml
36 lines (33 loc) · 1.24 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
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: azure-search-openai-demo-java-app-service
metadata:
template: [email protected]
services:
backend:
project: ../../app/backend
language: java
host: appservice
hooks:
prepackage:
windows:
shell: pwsh
run: cd ../frontend;npm install;npm run build; New-Item -ItemType Directory -Path "../backend/src/main/resources/static" -ErrorAction SilentlyContinue; Copy-Item ".\build\*" "..\backend\src\main\resources\static" -Recurse -Force
interactive: true
continueOnError: false
posix:
shell: sh
run: cd ../frontend;npm install;npm run build; mkdir -p ../backend/src/main/resources/static; cp -r ./build/* ../backend/src/main/resources/static
interactive: true
continueOnError: false
hooks:
postprovision:
windows:
shell: pwsh
run: ./scripts/prepdocs.ps1
interactive: true
continueOnError: false
posix:
shell: sh
run: ./scripts/prepdocs.sh
interactive: true
continueOnError: false