-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
50 lines (43 loc) · 1.4 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
variable TAG_LATEST {default = false}
variable MAJOR_VERSION {default = 4}
variable MINOR_VERSION {default = 4}
variable PATCH_VERSION {default = 2}
variable OS {default = "rockylinux"}
group "default" {
targets = ["fluentd"]
}
target "fluentd" {
context = "."
target = OS
args = {
MAJOR_VERSION = MAJOR_VERSION,
MINOR_VERSION = MINOR_VERSION,
PATCH_VERSION = PATCH_VERSION,
}
platforms = ["linux/amd64"] # FIXME "linux/arm64" -- https://github.com/docker/buildx/issues/1522
tags = [
equal(true,TAG_LATEST) ? "jackhrt/fluentd-docker:latest-${OS}": "",
"jackhrt/fluentd-docker:v${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}-${OS}"
]
}
target "fluentd-mqtt" {
context = "."
contexts = {fluentd-base = "target:fluentd"}
dockerfile = "Dockerfile.mqtt"
platforms = ["linux/amd64"] # FIXME "linux/arm64" -- https://github.com/docker/buildx/issues/1522
tags = [
equal(true,TAG_LATEST) ? "jackhrt/fluentd-mqtt-docker:latest-${OS}": "",
"jackhrt/fluentd-mqtt-docker:v${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}-${OS}"
]
}
# for debugging
target builder {
inherits = ["fluentd"]
tags = ["builder"]
target = "builder"
}
# FIXME - can't use the bake file in action b/c of issue cited above
target "docker-metadata-action" {}
target "fluentd-prod" {
inherits = ["fluentd", "docker-metadata-action"]
}