-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
88 lines (80 loc) · 2.16 KB
/
docker-bake.hcl
File metadata and controls
88 lines (80 loc) · 2.16 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
# SPDX-FileCopyrightText: Copyright 2025 Stacklok, Inc.
# SPDX-License-Identifier: Apache-2.0
variable "REGISTRY" {
default = "ghcr.io/stacklok/brood-box"
}
group "default" {
targets = ["base", "claude-code", "codex", "opencode", "hermes", "gemini"]
}
target "base" {
context = "images/base/"
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${REGISTRY}/base:latest"]
cache-from = ["type=gha,scope=base"]
cache-to = ["type=gha,mode=max,scope=base"]
}
target "claude-code" {
context = "images/claude-code/"
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${REGISTRY}/claude-code:latest"]
cache-from = ["type=gha,scope=claude-code"]
cache-to = ["type=gha,mode=max,scope=claude-code"]
args = {
BASE_IMAGE = "brood-box-base"
}
contexts = {
"brood-box-base" = "target:base"
}
}
target "codex" {
context = "images/codex/"
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${REGISTRY}/codex:latest"]
cache-from = ["type=gha,scope=codex"]
cache-to = ["type=gha,mode=max,scope=codex"]
args = {
BASE_IMAGE = "brood-box-base"
}
contexts = {
"brood-box-base" = "target:base"
}
}
target "opencode" {
context = "images/opencode/"
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${REGISTRY}/opencode:latest"]
cache-from = ["type=gha,scope=opencode"]
cache-to = ["type=gha,mode=max,scope=opencode"]
args = {
BASE_IMAGE = "brood-box-base"
}
contexts = {
"brood-box-base" = "target:base"
}
}
target "hermes" {
context = "images/hermes/"
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${REGISTRY}/hermes:latest"]
cache-from = ["type=gha,scope=hermes"]
cache-to = ["type=gha,mode=max,scope=hermes"]
args = {
BASE_IMAGE = "brood-box-base"
}
contexts = {
"brood-box-base" = "target:base"
}
}
target "gemini" {
context = "images/gemini/"
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${REGISTRY}/gemini:latest"]
cache-from = ["type=gha,scope=gemini"]
cache-to = ["type=gha,mode=max,scope=gemini"]
args = {
BASE_IMAGE = "brood-box-base"
}
contexts = {
"brood-box-base" = "target:base"
}
}