-
Notifications
You must be signed in to change notification settings - Fork 897
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
54 lines (48 loc) · 1.71 KB
/
docker-bake.hcl
File metadata and controls
54 lines (48 loc) · 1.71 KB
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
variable "VERSIONS" {
default = "nightly"
}
variable versions {
default = split(",", VERSIONS)
}
variable components {
default = ["gorse-master", "gorse-server", "gorse-worker", "gorse-in-one"]
}
group "default" {
targets = ["gorse-master", "gorse-server", "gorse-worker", "gorse-in-one"]
}
target "openblas" {
matrix = {
component = components
}
name = component
context = "."
dockerfile = "cmd/${component}/Dockerfile.openblas"
platforms = ["linux/amd64", "linux/arm64", "linux/riscv64"]
tags = [for v in versions : "zhenghaoz/${component}:${v}"]
cache-from = ["type=gha"]
cache-to = ["type=gha,mode=max"]
}
target "cuda" {
matrix = {
component = components
}
name = "${component}-cuda"
context = "."
dockerfile = "cmd/${component}/Dockerfile.cuda"
platforms = ["linux/amd64"]
tags = [for v in versions : "zhenghaoz/${component}:${v}-cuda12.8"]
cache-from = ["type=s3,endpoint_url=https://b172f19b7e057975835d8d311a7b0dbd.r2.cloudflarestorage.com,bucket=github,region=auto"]
cache-to = ["type=s3,endpoint_url=https://b172f19b7e057975835d8d311a7b0dbd.r2.cloudflarestorage.com,bucket=github,region=auto,mode=max"]
}
target "mkl" {
matrix = {
component = components
}
name = "${component}-mkl"
context = "."
dockerfile = "cmd/${component}/Dockerfile.mkl"
platforms = ["linux/amd64"]
tags = [for v in versions : "zhenghaoz/${component}:${v}-mkl"]
cache-from = ["type=s3,endpoint_url=https://b172f19b7e057975835d8d311a7b0dbd.r2.cloudflarestorage.com,bucket=github,region=auto"]
cache-to = ["type=s3,endpoint_url=https://b172f19b7e057975835d8d311a7b0dbd.r2.cloudflarestorage.com,bucket=github,region=auto,mode=max"]
}