-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yaml
26 lines (25 loc) · 911 Bytes
/
cloudbuild.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
steps:
- id: 'build-and-publish-webui'
name: 'gcr.io/cloud-builders/mvn'
args: [
'clean', 'package',
'-Dquarkus.quinoa.package-manager-install=true',
'-Dquarkus.quinoa.package-manager-install.node-version=21.5.0',
'-Dquarkus.container-image.registry=gcr.io',
'-Dquarkus.container-image.build=true',
'-Dquarkus.container-image.push=true',
'-Dquarkus.container-image.group=$PROJECT_ID/lcm',
'-Dquarkus.container-image.name=webui',
'-Dquarkus.container-image.tag=$SHORT_SHA'
]
dir: 'web-ui'
# Deploy on GKE
- id: 'deploy-webui'
name: "gcr.io/cloud-builders/gke-deploy"
args:
- run
- --filename=web-ui/target/kubernetes/kubernetes.yml
- --image=gcr.io/$PROJECT_ID/lcm/webui:$SHORT_SHA
- --cluster=${_CONTAINER_CLUSTER}
- --location=${_CONTAINER_COMPUTE_ZONE}
waitFor: ['build-and-publish-webui']