Skip to content

Commit b117e95

Browse files
committed
Add docker bake configuration
1 parent 3d425dc commit b117e95

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

docker-bake.hcl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
variable "REGISTRY" {
2+
default = "docker.io/srcml"
3+
}
4+
5+
variable "IMAGE" {
6+
default = "namecollector"
7+
}
8+
9+
variable "TAG" {
10+
default = "latest"
11+
}
12+
13+
group "default" {
14+
targets = ["namecollector"]
15+
}
16+
17+
target "namecollector" {
18+
context = "."
19+
dockerfile = "Dockerfile"
20+
platforms = ["linux/amd64", "linux/arm64"]
21+
tags = [
22+
"${REGISTRY}/${IMAGE}:${TAG}",
23+
]
24+
}
25+
26+
target "local" {
27+
inherits = ["namecollector"]
28+
platforms = ["linux/amd64"]
29+
output = ["type=docker"]
30+
tags = ["${IMAGE}:${TAG}"]
31+
}

0 commit comments

Comments
 (0)