-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathazure.yaml
41 lines (40 loc) · 1.14 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
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: todo-nodejs-mongo-aks
metadata:
template: [email protected]
workflows:
up:
steps:
- azd: provision
- azd: deploy --all
pipeline:
variables:
- AZURE_PRINCIPAL_TYPE
services:
web:
project: ./src/web
dist: dist
language: js
host: aks
hooks:
prebuild:
windows:
shell: pwsh
run: 'echo "VITE_API_BASE_URL=""$env:SERVICE_API_ENDPOINT_URL""" > .env.local ; echo "VITE_APPLICATIONINSIGHTS_CONNECTION_STRING=""$env:APPLICATIONINSIGHTS_CONNECTION_STRING""" >> .env.local'
posix:
shell: sh
run: 'echo VITE_API_BASE_URL=\"$SERVICE_API_ENDPOINT_URL\" > .env.local && echo VITE_APPLICATIONINSIGHTS_CONNECTION_STRING=\"$APPLICATIONINSIGHTS_CONNECTION_STRING\" >> .env.local'
postbuild:
windows:
shell: pwsh
run: "rm .env.local"
posix:
shell: sh
run: "rm .env.local"
api:
project: ./src/api
language: js
host: aks
k8s:
ingress:
relativePath: api