-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
106 lines (88 loc) · 2.31 KB
/
docker-bake.hcl
File metadata and controls
106 lines (88 loc) · 2.31 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
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
target "docker-metadata-action" {}
variable "OWNER" {
default = "imagegenius"
}
variable "BASE_IMAGE" {
# renovate: datasource=docker depName=ghcr.io/imagegenius/baseimage-immich
default = "ghcr.io/imagegenius/baseimage-immich@sha256:971e2332d0a6654d7513173385a9cb5d4ccedcbf612b49df3dbdd93fd908f545"
}
variable "VERSION" {
# renovate: datasource=github-releases depName=immich-app/immich
default = "v2.7.5"
}
variable "NODEJS_VERSION" {
# renovate: datasource=github-releases depName=nodejs/node versioning=node
default = "22.18.0"
}
variable "UV_IMAGE" {
# renovate: datasource=docker depName=ghcr.io/astral-sh/uv
default = "ghcr.io/astral-sh/uv:0.11.14@sha256:1025398289b62de8269e70c45b91ffa37c373f38118d7da036fb8bb8efc85d97"
}
variable "SOURCE" {
default = "https://github.com/immich-app/immich"
}
group "default" {
targets = ["image-main-local"]
}
target "image" {
inherits = ["docker-metadata-action"]
args = {
BASE_IMAGE = "${BASE_IMAGE}"
IMMICH_VERSION = "${VERSION}"
NODEJS_VERSION = "${NODEJS_VERSION}"
UV_IMAGE = "${UV_IMAGE}"
}
labels = {
"org.opencontainers.image.source" = "${SOURCE}"
}
}
target "image-main" {
inherits = ["image"]
target = "final-main"
platforms = ["linux/amd64", "linux/arm64"]
}
target "image-main-local" {
inherits = ["image"]
target = "final-main"
output = ["type=docker"]
tags = ["immich:local-main"]
}
target "image-noml" {
inherits = ["image"]
target = "final-noml"
platforms = ["linux/amd64", "linux/arm64"]
}
target "image-noml-local" {
inherits = ["image"]
target = "final-noml"
output = ["type=docker"]
tags = ["immich:local-noml"]
}
target "image-cuda" {
inherits = ["image"]
target = "final-cuda"
platforms = ["linux/amd64"]
}
target "image-cuda-local" {
inherits = ["image"]
target = "final-cuda"
output = ["type=docker"]
tags = ["immich:local-cuda"]
}
target "image-openvino" {
inherits = ["image"]
target = "final-openvino"
platforms = ["linux/amd64"]
}
target "image-openvino-local" {
inherits = ["image"]
target = "final-openvino"
output = ["type=docker"]
tags = ["immich:local-openvino"]
}
group "image-multiarch" {
targets = ["image-main", "image-noml"]
}
group "image-amd64-only" {
targets = ["image-cuda", "image-openvino"]
}