forked from ishantagarwal-x213235/garden-sample-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spring-service-module.garden.yml
61 lines (48 loc) · 1.77 KB
/
spring-service-module.garden.yml
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
kind: ConfigTemplate
name: spring-service-module-template
inputsSchemaPath: schema.json
modules:
- type: jib-container
name: ${parent.name}-image
description: Backend service
include:
- ./**/src/**/*
- pom.xml
- ./**/pom.xml
image: ${parent.name}
extraFlags:
- -Djib.useOnlyProjectCache=false
- "-Djib.from.image=${var.dockerRepo}/${inputs.jdkVersion == '11' ? var.baseImageJava11 : var.baseImageJava8}"
- "-nsu"
- "-Dtransitive=false"
build:
jdkVersion: ${inputs.jdkVersion}
projectType: maven
dependencies: ${var.dependencies}?
mavenPhases: [ "clean", "package" ]
- type: pulumi
name: ${parent.name}-service # ${var.test}-${parent.name} #${parent.name}-module
description: common to all REST services
root: ${inputs.deploymentFolder}/pulumi
stack: "${environment.name}"
disabled: ${inputs.disabled}
variables:
excludeDefault: ["${parent.name}"]
pulumiProjectName: ${var.gardenProjectName}-${var.projectname}-${parent.name}
createStack: true
autoApply: true
deployFromPreview: ${var.withPlan}
pulumiVarfiles:
- "${local.projectPath}/config/global.yaml"
- "${inputs.deploymentFolder}/config/common.yaml"
- "${inputs.deploymentFolder}/config/${environment.name}.yaml"
exclude: ${inputs.excludeModules || var.excludeDefault}
include:
- "./*/config/application-gcp.properties"
- "./*/config/application-gcp-${environment.name}.properties"
- "./*/config/*.xml"
- "./*/secrets/${environment.name}/**"
- "./${inputs.deploymentFolder}/config/common.yaml"
- "${inputs.deploymentFolder}/config/${environment.name}.yaml"
build:
dependencies: ["${'${parent.name}-image'}"]