-
Notifications
You must be signed in to change notification settings - Fork 7
/
azure.yaml
79 lines (70 loc) · 2.11 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
78
79
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: java-ai-lab
workflows:
up:
- azd: provision
- azd: package --all
- azd: deploy --all
infra:
provider: bicep
path: infra/bicep
services:
api-gateway:
resourceName: ${apiGatewayContainerAppName}
project: ./src/api-gateway
host: containerapp
language: java
docker:
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
image: java-ai/api-gateway
tag: ${AZD_PROVISION_TIMESTAMP}
remoteBuild: true
ai-image-processing-service:
resourceName: ${imageProcessingServiceContainerAppName}
project: ./src/ai-image-processing-service
host: containerapp
language: java
docker:
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
image: java-ai/ai-image-processing-service
tag: ${AZD_PROVISION_TIMESTAMP}
remoteBuild: true
blob-storage-service:
resourceName: ${blobStorageServiceContainerAppName}
project: ./src/blob-storage-service
host: containerapp
language: java
docker:
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
image: java-ai/blob-storage-service
tag: ${AZD_PROVISION_TIMESTAMP}
remoteBuild: true
ai-shop-ui:
resourceName: ${aiShopUiContainerApps}
project: ./src/ai-shop-ui
host: containerapp
language: js
docker:
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
image: java-ai/ai-shop-ui
tag: ${AZD_PROVISION_TIMESTAMP}
remoteBuild: true
item-category-service:
resourceName: ${itemCategoryServiceContainerAppName}
project: ./src/item-category-service
host: containerapp
language: java
docker:
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
image: java-ai/item-category-service
tag: ${AZD_PROVISION_TIMESTAMP}
remoteBuild: true
hooks:
postprovision:
posix:
shell: sh
run: 'chmod +x ./infra/bicep/hooks/export-env.sh; ./infra/bicep/hooks/export-env.sh'
prepackage:
posix:
shell: sh
run: 'chmod +x ./infra/bicep/hooks/build-java.sh; ./infra/bicep/hooks/build-java.sh'