-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
125 lines (103 loc) · 2.77 KB
/
Copy pathdocker-bake.hcl
File metadata and controls
125 lines (103 loc) · 2.77 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
target "docker-metadata-action" {}
variable "OWNER" {
default = "imagegenius"
}
variable "IMMICH_BASE_IMAGES_VERSION" {
# renovate: datasource=github-tags depName=immich-app/base-images versioning=regex:^(?<major>\d{8})(?<minor>\d{4})$
default = "202609081109"
}
variable "VERSION" {
# renovate: datasource=github-tags depName=immich-app/immich versioning=semver
default = "v3.2.2"
}
variable "NODEJS_VERSION" {
# renovate: datasource=node-version depName=node versioning=node
default = "24.15.0"
}
variable "UV_IMAGE_REPOSITORY" {
default = "ghcr.io/astral-sh/uv"
}
variable "UV_IMAGE_VERSION" {
# renovate: datasource=docker depName=ghcr.io/astral-sh/uv versioning=docker
default = "0.11.29"
}
variable "MISE_IMAGE_REPOSITORY" {
default = "ghcr.io/jdx/mise"
}
variable "MISE_IMAGE_VERSION" {
# renovate: datasource=docker depName=ghcr.io/jdx/mise versioning=docker
default = "2026.8.2"
}
variable "IMMICH_MEDIA_BUILD_JOBS" {
default = "4"
}
variable "SOURCE" {
default = "https://github.com/immich-app/immich"
}
group "default" {
targets = ["image-main-local"]
}
target "image" {
inherits = ["docker-metadata-action"]
args = {
IMMICH_BASE_IMAGES_VERSION = "${IMMICH_BASE_IMAGES_VERSION}"
IMMICH_MEDIA_BUILD_JOBS = "${IMMICH_MEDIA_BUILD_JOBS}"
IMMICH_VERSION = "${VERSION}"
MISE_IMAGE = "${MISE_IMAGE_REPOSITORY}:${MISE_IMAGE_VERSION}"
NODEJS_VERSION = "${NODEJS_VERSION}"
UV_IMAGE = "${UV_IMAGE_REPOSITORY}:${UV_IMAGE_VERSION}"
}
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"]
}