-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
45 lines (38 loc) · 874 Bytes
/
Copy pathdocker-bake.hcl
File metadata and controls
45 lines (38 loc) · 874 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
33
34
35
36
37
38
39
40
41
42
43
44
45
group "default" {
targets = [
"gotools-latest",
]
}
variable "REGISTRY" {
default = "ghcr.io"
}
variable "IMAGE_NAME" {
default = "obalunenko/go-tools"
}
variable "IMAGE_WITH_REGISTRY" {
default = notequal("",REGISTRY) ? "${REGISTRY}/${IMAGE_NAME}": "${IMAGE_NAME}"
}
variable "IMAGE_TITLE" {
default = "Go Tools"
}
variable "IMAGE_DESCRIPTION" {
default = ""
}
target "docker-metadata-action" {}
target "gotools-latest" {
inherits = ["docker-metadata-action"]
dockerfile = "Dockerfile"
context = "."
platforms = [
"linux/amd64",
"linux/arm64"
]
args = {
GO_VERSION = "1.26.4"
ALPINE_VERSION = "3.22"
}
labels = {
"org.opencontainers.image.title" = "${IMAGE_TITLE}"
"org.opencontainers.image.description" = "${IMAGE_DESCRIPTION}"
}
}