-
Notifications
You must be signed in to change notification settings - Fork 0
/
bake.hcl
49 lines (41 loc) · 879 Bytes
/
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
variable "DEFAULT_TAG" {
default = "app:local"
}
// Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
tags = ["${DEFAULT_TAG}"]
}
// Default target if none specified
group "default" {
targets = ["image-local"]
}
target "image" {
inherits = ["docker-metadata-action"]
}
target "participation-image" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "Dockerfile.participation"
}
target "legacy-relay-image" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "Dockerfile.legacy-relay"
}
target "image-local" {
inherits = ["image"]
output = ["type=docker"]
}
target "image-all" {
inherits = ["image"]
platforms = [
"linux/amd64",
]
}
target "participation-image-all" {
inherits = ["image"]
platforms = [
"linux/amd64",
"linux/arm64"
]
}