-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
32 lines (29 loc) · 854 Bytes
/
docker-bake.hcl
File metadata and controls
32 lines (29 loc) · 854 Bytes
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
variable "REGISTRY" { default = "ghcr.io/reyemtech" }
variable "VERSION" { default = "latest" }
group "default" {
targets = ["upgrade-agent"]
}
target "upgrade-agent" {
name = "${item.stack}-upgrade-agent-${item.agent}"
matrix = {
item = [
{ stack = "laravel", agent = "claude" },
{ stack = "laravel", agent = "codex" },
]
}
context = "stacks/${item.stack}"
dockerfile = "Dockerfile.${item.agent}"
contexts = {
base = "target:base-${item.stack}"
}
tags = [
"${REGISTRY}/${item.stack}-upgrade-agent-${item.agent}:${VERSION}",
"${REGISTRY}/${item.stack}-upgrade-agent-${item.agent}:latest",
]
platforms = ["linux/amd64", "linux/arm64"]
}
target "base-laravel" {
context = "stacks/laravel"
dockerfile = "Dockerfile.base"
tags = [] # Not pushed — used as build dependency only
}