-
Notifications
You must be signed in to change notification settings - Fork 97
/
docker-bake.hcl
122 lines (113 loc) · 2.22 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
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",
"flow-maintenance",
"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",
]
args = {
PEERDB_VERSION_SHA_SHORT = "${SHA_SHORT}"
}
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",
]
args = {
PEERDB_VERSION_SHA_SHORT = "${SHA_SHORT}"
}
tags = [
"${REGISTRY}/flow-worker:${TAG}",
"${REGISTRY}/flow-worker:${SHA_SHORT}",
]
}
target "flow-maintenance" {
context = "."
dockerfile = "stacks/flow.Dockerfile"
target = "flow-maintenance"
platforms = [
"linux/amd64",
"linux/arm64",
]
args = {
PEERDB_VERSION_SHA_SHORT = "${SHA_SHORT}"
}
tags = [
"${REGISTRY}/flow-maintenance:${TAG}",
"${REGISTRY}/flow-maintenance:${SHA_SHORT}",
]
}
target "peerdb" {
context = "."
dockerfile = "stacks/peerdb-server.Dockerfile"
platforms = [
"linux/amd64",
"linux/arm64",
]
args = {
PEERDB_VERSION_SHA_SHORT = "${SHA_SHORT}"
}
tags = [
"${REGISTRY}/peerdb-server:${TAG}",
"${REGISTRY}/peerdb-server:${SHA_SHORT}",
]
}
target "peerdb-ui" {
context = "."
dockerfile = "stacks/peerdb-ui.Dockerfile"
platforms = [
"linux/amd64",
"linux/arm64",
]
args = {
PEERDB_VERSION_SHA_SHORT = "${SHA_SHORT}"
}
tags = [
"${REGISTRY}/peerdb-ui:${TAG}",
"${REGISTRY}/peerdb-ui:${SHA_SHORT}",
]
}