-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-bake.hcl
102 lines (88 loc) · 1.98 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
93
94
95
96
97
98
99
100
101
102
variable "RELEASE_VERSION" {
default = ""
}
variable "GO_BUILD_LDFLAGS" {
default = ""
}
target "goxx" {
context = "./bin/docker"
}
target "_commons" {
contexts = {
goxx = "target:goxx"
}
args = {
RELEASE_VERSION: "${RELEASE_VERSION}"
GO_BUILD_LDFLAGS: "${GO_BUILD_LDFLAGS}"
}
}
group "default" {
targets = ["image-local"]
}
target "image" {
inherits = ["_commons"]
labels = {
"org.opencontainers.image.title": "Smart home"
"org.opencontainers.image.authors": "Filippov Alex <[email protected]>"
"org.opencontainers.image.description": "Managing iot devices has become easier thanks to the smart-home automation software platform for managing iot devices with a graphical interface and javascript's scripts."
"org.opencontainers.image.licenses": "GPL-3.0-only"
"org.opencontainers.image.version": "${RELEASE_VERSION}"
}
tags = ["e154/smart-home-server:${RELEASE_VERSION}", "e154/smart-home-server:latest"]
}
target "image-local" {
dockerfile = "Dockerfile"
inherits = ["image"]
output = ["type=docker"]
}
target "image-all" {
dockerfile = "Dockerfile"
inherits = ["image"]
platforms = [
"linux/amd64",
"linux/arm64",
"linux/arm/v6",
"linux/arm/v7",
"linux/ppc64le",
"linux/riscv64",
"linux/s390x"
]
}
target "image-linux-arm64" {
dockerfile = "Dockerfile"
inherits = ["image"]
platforms = [
"linux/arm64"
]
}
target "artifact" {
inherits = ["_commons"]
target = "artifact"
output = ["./dist"]
}
target "artifact-all" {
dockerfile = "Dockerfile"
inherits = ["artifact"]
platforms = [
"linux/amd64",
"linux/arm64",
"linux/arm/v6",
"linux/arm/v7",
"linux/ppc64le",
"linux/riscv64",
"linux/s390x",
"windows/amd64",
"windows/arm64"
]
}
target "artifact-darwin-arm64" {
dockerfile = "Dockerfile"
inherits = ["artifact"]
platforms = [
"darwin/arm64"
]
}
target "artifact-public" {
dockerfile = "./bin/docker/Dockerfile.public"
output = ["./build/public"]
}