forked from storj/storj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-bake.hcl
55 lines (48 loc) · 1.18 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
# This is a standard docker-bake.hcl file.
# You can call any target with `docker buildx bake <target>`.
# But because we need versions, it's better to use `./scripts/bake.sh <target>`.
variable "BUILD_COMMIT" {
default = "head"
}
variable "BUILD_DATE" {
default = "1970-01-01T00:00:00.0Z"
}
variable "BUILD_VERSION" {
default = "dev"
}
target "storagenode-modular" {
args = {
BUILD_COMMIT = "${BUILD_COMMIT}"
BUILD_VERSION = "${BUILD_VERSION}"
BUILD_DATE = "${BUILD_DATE}"
}
dockerfile = "./storagenode/storagenode/Dockerfile"
context = "."
target = "build"
cache-from = [
{
type = "registry",
ref = "ghcr.io/storj/storagenode-modular-cache:main"
}
]
}
target "satellite-modular" {
args = {
BUILD_COMMIT = "${BUILD_COMMIT}"
BUILD_VERSION = "${BUILD_VERSION}"
BUILD_DATE = "${BUILD_DATE}"
}
dockerfile = "./satellite/satellite/Dockerfile"
context = "."
target = "build"
cache-from = [
{
type = "registry",
ref = "ghcr.io/storj/satellite-modular-cache:main"
}
]
}
target "storagenode-modular-all-platform" {
inherits = ["storagenode-modular"]
platforms = ["linux/arm64", "linux/amd64"]
}