-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-bake.hcl
187 lines (167 loc) · 7.24 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
variable "EXPERIMENTAL_URL" {
default = "https://github.com/Cyb3r-Jak3/html5validator.git"
}
variable "DOCKER_META_VERSION" {
default = "dev"
}
group "release" {
targets = [
"source-slim-release",
"source-alpine-release",
"pypi-slim-release",
"pypi-alpine-release",
"experimental-slim",
"experimental-alpine"
]
}
group "all" {
targets = ["slim","pypi","experimental"]
}
group "slim" {
targets = ["source-slim", "source-alpine"]
}
group "pypi" {
targets = ["pypi-slim", "pypi-alpine"]
}
group "experimental" {
targets = ["experimental-slim", "experimental-alpine"]
}
target "source-slim" {
dockerfile = "./Dockerfiles/slim.Dockerfile"
target = "source"
tags = [
"cyb3rjak3/html5validator:source-slim",
"cyb3rjak3/html5validator:source-slim-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:source-slim",
"ghcr.io/cyb3r-jak3/html5validator:source-slim-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:source-slim",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:source-slim-${DOCKER_META_VERSION}"
]
}
target "source-alpine" {
dockerfile = "./Dockerfiles/alpine.Dockerfile"
target = "source"
tags = [
"cyb3rjak3/html5validator:source",
"cyb3rjak3/html5validator:source-${DOCKER_META_VERSION}",
"cyb3rjak3/html5validator:source-alpine",
"cyb3rjak3/html5validator:source-alpine-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:source",
"ghcr.io/cyb3r-jak3/html5validator:source-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:source-alpine",
"ghcr.io/cyb3r-jak3/html5validator:source-alpine-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:source",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:source-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:source-alpine",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:source-alpine-${DOCKER_META_VERSION}"
]
}
target "pypi-slim" {
dockerfile = "./Dockerfiles/slim.Dockerfile"
target = "pypi"
tags = [
"cyb3rjak3/html5validator:latest-slim",
"cyb3rjak3/html5validator:pypi-slim",
"cyb3rjak3/html5validator:latest-slim-${DOCKER_META_VERSION}",
"cyb3rjak3/html5validator:pypi-slim-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:latest-slim",
"ghcr.io/cyb3r-jak3/html5validator:latest-slim-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:pypi-slim",
"ghcr.io/cyb3r-jak3/html5validator:pypi-slim-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:latest-slim",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:latest-slim-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:pypi-slim",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:pypi-slim-${DOCKER_META_VERSION}"
]
}
target "pypi-alpine" {
dockerfile = "./Dockerfiles/alpine.Dockerfile"
target = "pypi"
tags = [
"cyb3rjak3/html5validator:latest",
"cyb3rjak3/html5validator:pypi",
"cyb3rjak3/html5validator:pypi-${DOCKER_META_VERSION}",
"cyb3rjak3/html5validator:latest-alpine",
"cyb3rjak3/html5validator:latest-alpine-${DOCKER_META_VERSION}",
"cyb3rjak3/html5validator:pypi-alpine",
"cyb3rjak3/html5validator:pypi-alpine-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:latest",
"ghcr.io/cyb3r-jak3/html5validator:latest-alpine",
"ghcr.io/cyb3r-jak3/html5validator:latest-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:pypi",
"ghcr.io/cyb3r-jak3/html5validator:pypi-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:pypi-alpine",
"ghcr.io/cyb3r-jak3/html5validator:pypi-alpine-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:latest",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:latest-alpine",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:latest-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:pypi",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:pypi-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:pypi-alpine",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:pypi-alpine-${DOCKER_META_VERSION}"
]
}
target "experimental-slim" {
dockerfile = "./Dockerfiles/slim.Dockerfile"
target = "source"
args = {
GIT_URL = "${EXPERIMENTAL_URL}"
}
tags = [
"cyb3rjak3/html5validator:experimental-slim",
"cyb3rjak3/html5validator:experimental-slim-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:experimental-slim",
"ghcr.io/cyb3r-jak3/html5validator:experimental-slim-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:experimental-slim",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:experimental-slim-${DOCKER_META_VERSION}"
]
}
target "experimental-alpine" {
dockerfile = "./Dockerfiles/alpine.Dockerfile"
target = "source"
args = {
GIT_URL = "${EXPERIMENTAL_URL}"
}
tags = [
"cyb3rjak3/html5validator:experimental",
"cyb3rjak3/html5validator:experimental-${DOCKER_META_VERSION}",
"cyb3rjak3/html5validator:experimental-alpine",
"cyb3rjak3/html5validator:experimental-alpine-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:experimental",
"ghcr.io/cyb3r-jak3/html5validator:experimental-${DOCKER_META_VERSION}",
"ghcr.io/cyb3r-jak3/html5validator:experimental-alpine",
"ghcr.io/cyb3r-jak3/html5validator:experimental-alpine-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:experimental",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:experimental-${DOCKER_META_VERSION}",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:experimental-alpine",
"registry.gitlab.com/cyb3r-jak3/html5validator-docker:experimental-alpine-${DOCKER_META_VERSION}"
]
}
// Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
platforms = [
"linux/amd64",
"linux/arm/v6",
"linux/arm/v7",
"linux/arm64",
"linux/386",
]
}
target "source-slim-release" {
inherits = ["docker-metadata-action", "source-slim"]
}
target "source-alpine-release" {
inherits = ["docker-metadata-action", "source-alpine"]
}
target "pypi-slim-release" {
inherits = ["docker-metadata-action", "pypi-slim"]
}
target "pypi-alpine-release" {
inherits = ["docker-metadata-action", "pypi-alpine"]
}
target "experimental-slim-release" {
inherits = ["docker-metadata-action", "experimental-slim"]
}
target "experimental-alpine-release" {
inherits = ["docker-metadata-action", "experimental-alpine"]
}