-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathazure.yaml
114 lines (101 loc) · 2.92 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: java-microservices-aca-lab
metadata:
template: java-microservices-aca-lab
workflows:
up:
- azd: provision
# - azd: package --all
# - azd: deploy --all
infra:
provider: bicep
path: infra/bicep
services:
api-gateway:
resourceName: api-gateway
project: ./src/spring-petclinic-api-gateway
host: containerapp
language: java
docker:
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
path: ./ai.Dockerfile
image: java-microservices-aca-lab/spring-petclinic-api-gateway
tag: ${AZD_PROVISION_TIMESTAMP}
remoteBuild: true
customers-service:
resourceName: customers-service
project: ./src/spring-petclinic-customers-service
host: containerapp
language: java
docker:
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
path: ./ai.Dockerfile
image: java-microservices-aca-lab/spring-petclinic-customers-service
tag: ${AZD_PROVISION_TIMESTAMP}
remoteBuild: true
vets-service:
resourceName: vets-service
project: ./src/spring-petclinic-vets-service
host: containerapp
language: java
docker:
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
path: ./ai.Dockerfile
image: java-microservices-aca-lab/spring-petclinic-vets-service
tag: ${AZD_PROVISION_TIMESTAMP}
remoteBuild: true
visits-service:
resourceName: visits-service
project: ./src/spring-petclinic-visits-service
host: containerapp
language: java
docker:
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
path: ./ai.Dockerfile
image: java-microservices-aca-lab/spring-petclinic-visits-service
tag: ${AZD_PROVISION_TIMESTAMP}
remoteBuild: true
chat-agent:
resourceName: chat-agent
project: ./src/spring-petclinic-chat-agent
host: containerapp
language: java
docker:
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
path: ./ai.Dockerfile
image: java-microservices-aca-lab/spring-petclinic-chat-agent
tag: ${AZD_PROVISION_TIMESTAMP}
remoteBuild: true
hooks:
preprovision:
posix:
shell: sh
run: ./infra/bicep/hooks/preprovision.sh
interactive: true
windows:
shell: pwsh
run: ./infra/bicep/hooks/preprovision.ps1
interactive: true
postprovision:
posix:
shell: sh
run: ./infra/bicep/hooks/postprovision.sh
interactive: true
windows:
shell: pwsh
run: ./infra/bicep/hooks/postprovision.ps1
interactive: true
predown:
posix:
shell: sh
run: ./infra/bicep/hooks/predown.sh
windows:
shell: pwsh
run: ./infra/bicep/hooks/predown.ps1
prepackage:
posix:
shell: sh
run: 'cd src; chmod +x ./mvnw; ./mvnw clean package -DskipTests'
windows:
shell: pwsh
run: 'cd src; ./mvnw.cmd clean package -DskipTests'