forked from apitable/apitable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
70 lines (61 loc) · 1.74 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
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
}
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
}
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
}
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
}
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
}
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
}
tags = ["${IMAGE_REGISTRY}/apitable/all-in-one:latest", "${IMAGE_REGISTRY}/apitable/all-in-one:${IMAGE_TAG}"]
}