-
Notifications
You must be signed in to change notification settings - Fork 65
/
docker-bake.hcl
92 lines (79 loc) · 1.54 KB
/
docker-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
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
89
90
91
92
// Go version
variable "GO_VERSION" {
default = "1.22"
}
variable "WAYBACK_IPFS_TARGET" {
default = ""
}
variable "WAYBACK_IPFS_APIKEY" {
default = ""
}
variable "WAYBACK_IPFS_SECRET" {
default = ""
}
// GitHub reference as defined in GitHub Actions (eg. refs/head/master))
variable "GITHUB_REF" {
default = ""
}
target "_common" {
args = {
GO_VERSION = GO_VERSION
WAYBACK_IPFS_TARGET = WAYBACK_IPFS_TARGET
WAYBACK_IPFS_APIKEY = WAYBACK_IPFS_APIKEY
WAYBACK_IPFS_SECRET = WAYBACK_IPFS_SECRET
}
}
group "default" {
targets = ["image-local"]
}
// Special target: https://github.com/docker/docker-metadata-action#bake-definition
target "docker-metadata-action" {
tags = ["wabarc/wayback:local"]
}
target "image" {
inherits = ["_common", "docker-metadata-action"]
}
target "image-local" {
inherits = ["image"]
output = ["type=docker"]
}
target "artifact" {
inherits = ["image"]
output = ["./dist"]
}
target "artifact-all" {
inherits = ["artifact"]
platforms = [
"linux/386",
"linux/amd64",
"linux/arm/v6",
"linux/arm/v7",
"linux/arm64",
"linux/ppc64le"
]
}
target "release" {
inherits = ["image"]
context = "./"
platforms = [
"linux/386",
"linux/amd64",
"linux/arm/v6",
"linux/arm/v7",
"linux/arm64",
"linux/ppc64le"
]
}
target "bundle" {
inherits = ["image"]
context = "./"
dockerfile = "./build/docker/Dockerfile.all"
platforms = [
"linux/386",
"linux/amd64",
"linux/arm/v6",
"linux/arm/v7",
"linux/arm64",
"linux/ppc64le"
]
}