forked from apitable/apitable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
87 lines (77 loc) · 2.33 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
group "default" {
targets = ["backend-server", "room-server", "web-server", "init-db", "openresty"]
}
variable "IMAGE_REGISTRY" {
default = "docker.io"
}
variable "SEMVER_FULL" {
default = "v0.0.0-alpha"
}
variable "IMAGE_TAG" {
default = "latest"
}
target "backend-server" {
context = "."
dockerfile = "packaging/Dockerfile.backend-server"
args = {
SEMVER_FULL = SEMVER_FULL
}
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${IMAGE_REGISTRY}/apitable/backend-server:latest", "${IMAGE_REGISTRY}/apitable/backend-server:${IMAGE_TAG}"]
}
target "room-server" {
context = "."
dockerfile = "packaging/Dockerfile.room-server"
args = {
SEMVER_FULL = SEMVER_FULL
}
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${IMAGE_REGISTRY}/apitable/room-server:latest", "${IMAGE_REGISTRY}/apitable/room-server:${IMAGE_TAG}"]
}
target "web-server" {
context = "."
dockerfile = "packaging/Dockerfile.web-server"
args = {
SEMVER_FULL = SEMVER_FULL
}
platforms = ["linux/amd64"]
tags = ["${IMAGE_REGISTRY}/apitable/web-server:latest", "${IMAGE_REGISTRY}/apitable/web-server:${IMAGE_TAG}"]
}
# https://github.com/apitable/apitable/issues/1379
target "web-server-experimental" {
context = "."
dockerfile = "packaging/Dockerfile.web-server"
args = {
SEMVER_FULL = SEMVER_FULL
}
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${IMAGE_REGISTRY}/apitable/web-server:latest", "${IMAGE_REGISTRY}/apitable/web-server:${IMAGE_TAG}"]
}
target "init-db" {
context = "./init-db"
dockerfile = "Dockerfile"
args = {
SEMVER_FULL = SEMVER_FULL
}
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${IMAGE_REGISTRY}/apitable/init-db:latest", "${IMAGE_REGISTRY}/apitable/init-db:${IMAGE_TAG}"]
}
target "openresty" {
context = "./gateway"
dockerfile = "../packaging/Dockerfile.openresty"
args = {
SEMVER_FULL = SEMVER_FULL
}
platforms = ["linux/amd64", "linux/arm64"]
tags = ["${IMAGE_REGISTRY}/apitable/openresty:latest", "${IMAGE_REGISTRY}/apitable/openresty:${IMAGE_TAG}"]
}
target "all-in-one" {
context = "./packaging/all-in-one/all-in-one"
dockerfile = "Dockerfile"
args = {
SEMVER_FULL = SEMVER_FULL
IMAGE_TAG = IMAGE_TAG
}
platforms = ["linux/amd64"]
tags = ["${IMAGE_REGISTRY}/apitable/all-in-one:latest", "${IMAGE_REGISTRY}/apitable/all-in-one:${IMAGE_TAG}"]
}