-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-bake.hcl
115 lines (101 loc) · 2.54 KB
/
docker-bake.hcl
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
114
115
variable "TOMCAT_VERSION" {
# renovate: datasource=tomcat depName=apache/tomcat
default = "10.1.25"
}
group "all" {
targets = ["11-jre", "11-jre","17-jre","17-jdk","20-jre","20-jdk"]
}
group "release" {
targets = [
"11-jre-release",
"11-jdk-release",
"17-jre-release",
"17-jdk-release",
"20-jre-release",
"20-jdk-release",
]
}
target "11-jre" {
tags = [
"cyb3rjak3/alpine-tomcat:11-jre-${TOMCAT_VERSION}",
"ghcr.io/cyb3r-jak3/alpine-tomcat:11-jre-${TOMCAT_VERSION}",
]
args = {
JAVA_VERSION = "11-jre"
TOMCAT_VERSION = TOMCAT_VERSION
}
}
target "11-jdk" {
tags = [
"cyb3rjak3/alpine-tomcat:11-jdk-${TOMCAT_VERSION}",
"ghcr.io/cyb3r-jak3/alpine-tomcat:11-jdk-${TOMCAT_VERSION}",
]
args = {
JAVA_VERSION = "11-jdk"
TOMCAT_VERSION = TOMCAT_VERSION
}
}
target "17-jre" {
tags = [
"cyb3rjak3/alpine-tomcat:17-jre-${TOMCAT_VERSION}",
"ghcr.io/cyb3r-jak3/alpine-tomcat:17-jre-${TOMCAT_VERSION}",
]
args = {
JAVA_VERSION = "17-jre"
TOMCAT_VERSION = TOMCAT_VERSION
}
}
target "17-jdk" {
tags = [
"cyb3rjak3/alpine-tomcat:17-jdk-${TOMCAT_VERSION}",
"ghcr.io/cyb3r-jak3/alpine-tomcat:17-jdk-${TOMCAT_VERSION}",
]
args = {
JAVA_VERSION = "17-jdk"
TOMCAT_VERSION = TOMCAT_VERSION
}
}
target "20-jre" {
tags = [
"cyb3rjak3/alpine-tomcat:20-jre-${TOMCAT_VERSION}",
"ghcr.io/cyb3r-jak3/alpine-tomcat:20-jre-${TOMCAT_VERSION}",
]
args = {
JAVA_VERSION = "20-jre"
TOMCAT_VERSION = TOMCAT_VERSION
}
}
target "20-jdk" {
tags = [
"cyb3rjak3/alpine-tomcat:20-jdk-${TOMCAT_VERSION}",
"ghcr.io/cyb3r-jak3/alpine-tomcat:20-jdk-${TOMCAT_VERSION}",
]
args = {
JAVA_VERSION = "20-jdk"
TOMCAT_VERSION = TOMCAT_VERSION
}
}
// Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
platforms = [
"linux/amd64",
]
}
target "11-jre-release" {
inherits = ["docker-metadata-action", "11-jre"]
}
target "11-jdk-release" {
inherits = ["docker-metadata-action", "11-jdk"]
}
target "17-jre-release" {
inherits = ["docker-metadata-action", "17-jre"]
}
target "17-jdk-release" {
inherits = ["docker-metadata-action", "17-jdk"]
}
target "20-jre-release" {
inherits = ["docker-metadata-action", "20-jre"]
}
target "20-jdk-release" {
inherits = ["docker-metadata-action", "20-jdk"]
}