-
Notifications
You must be signed in to change notification settings - Fork 97
/
docker-bake.hcl
92 lines (84 loc) · 1.61 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
variable SHA_SHORT {
default = "123456"
}
variable TAG {
default = "latest-dev"
}
variable REGISTRY {
default = "ghcr.io/peerdb-io"
}
group "default" {
targets = [
"peerdb",
"flow-worker",
"flow-api",
"flow-snapshot-worker",
"peerdb-ui"
]
}
target "flow-api" {
context = "."
dockerfile = "stacks/flow.Dockerfile"
target = "flow-api"
platforms = [
"linux/amd64",
"linux/arm64",
]
args = {
PEERDB_VERSION_SHA_SHORT = "${SHA_SHORT}"
}
tags = [
"${REGISTRY}/flow-api:${TAG}",
"${REGISTRY}/flow-api:${SHA_SHORT}",
]
}
target "flow-snapshot-worker" {
context = "."
dockerfile = "stacks/flow.Dockerfile"
target = "flow-snapshot-worker"
platforms = [
"linux/amd64",
"linux/arm64",
]
tags = [
"${REGISTRY}/flow-snapshot-worker:${TAG}",
"${REGISTRY}/flow-snapshot-worker:${SHA_SHORT}",
]
}
target "flow-worker" {
context = "."
dockerfile = "stacks/flow.Dockerfile"
target = "flow-worker"
platforms = [
"linux/amd64",
"linux/arm64",
]
tags = [
"${REGISTRY}/flow-worker:${TAG}",
"${REGISTRY}/flow-worker:${SHA_SHORT}",
]
}
target "peerdb" {
context = "."
dockerfile = "stacks/peerdb-server.Dockerfile"
platforms = [
"linux/amd64",
"linux/arm64",
]
tags = [
"${REGISTRY}/peerdb-server:${TAG}",
"${REGISTRY}/peerdb-server:${SHA_SHORT}",
]
}
target "peerdb-ui" {
context = "."
dockerfile = "stacks/peerdb-ui.Dockerfile"
platforms = [
"linux/amd64",
"linux/arm64",
]
tags = [
"${REGISTRY}/peerdb-ui:${TAG}",
"${REGISTRY}/peerdb-ui:${SHA_SHORT}",
]
}