-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbake.hcl
49 lines (40 loc) · 884 Bytes
/
bake.hcl
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
variable "REGISTRY" {
default = ""
}
group "default" {
targets = ["alp-3-16", "go-1-19", "go-1-18", "go-1-17"]
}
group "golang" {
targets = ["go-1-19", "go-1-18", "go-1-17"]
}
group "alpine" {
targets = ["alp-3-16"]
}
target "go-1-19" {
dockerfile = "./Dockerfile"
tags = ["${REGISTRY}golang:1.19", "${REGISTRY}golang:1.19-alpine"]
args = {
IMAGE = "golang:1.19.3-alpine3.16"
}
}
target "go-1-18" {
dockerfile = "./Dockerfile"
tags = ["${REGISTRY}golang:1.18", "${REGISTRY}golang:1.18-alpine"]
args = {
IMAGE = "golang:1.18.7-alpine3.16"
}
}
target "go-1-17" {
dockerfile = "./Dockerfile"
tags = ["${REGISTRY}golang:1.17", "${REGISTRY}golang:1.17-alpine"]
args = {
IMAGE = "golang:1.17-alpine3.14"
}
}
target "alp-3-16" {
dockerfile = "./Dockerfile"
tags = ["${REGISTRY}alpine:3.16"]
args = {
IMAGE = "alpine:3.16"
}
}