-
Notifications
You must be signed in to change notification settings - Fork 60
/
docker-bake.hcl
93 lines (84 loc) · 2.39 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
# docker-bake.hcl
variable "platforms" {
default = ["linux/amd64", "linux/arm64"]
}
variable "IMAGE_REPO" {
default = "temporaliotest"
}
variable "IMAGE_TAG" {
default = null
}
variable "TEMPORAL_SHA" {
default = null
}
variable "TCTL_SHA" {
default = null
}
variable "TAG_LATEST" {
default = false
}
group "default" {
targets = [
"server",
"admin-tools",
"auto-setup",
]
}
target "server" {
dockerfile = "server.Dockerfile"
target = "server"
tags = [
"${IMAGE_REPO}/server:${IMAGE_TAG}",
TAG_LATEST ? "${IMAGE_REPO}/server:latest" : ""
]
platforms = platforms
args = {
TEMPORAL_SHA = "${TEMPORAL_SHA}"
TCTL_SHA = "${TCTL_SHA}"
}
labels = {
"org.opencontainers.image.title" = "server"
"org.opencontainers.image.description" = "Workflow as Code (TM) to build and operate resilient applications"
"org.opencontainers.image.url" = "https://github.com/temporalio/temporal"
"org.opencontainers.image.source" = "https://github.com/temporalio/temporal"
"org.opencontainers.image.licenses" = "MIT"
}
}
target "admin-tools" {
dockerfile = "admin-tools.Dockerfile"
tags = [
"${IMAGE_REPO}/admin-tools:${IMAGE_TAG}",
TAG_LATEST ? "${IMAGE_REPO}/admin-tools:latest" : ""
]
platforms = platforms
contexts = {
server = "target:server"
}
labels = {
"org.opencontainers.image.title" = "admin-tools"
"org.opencontainers.image.description" = "Workflow as Code (TM) to build and operate resilient applications"
"org.opencontainers.image.url" = "https://github.com/temporalio/docker-builds"
"org.opencontainers.image.source" = "https://github.com/temporalio/docker-builds"
"org.opencontainers.image.licenses" = "MIT"
}
}
target "auto-setup" {
dockerfile = "server.Dockerfile"
target = "auto-setup"
tags = [
"${IMAGE_REPO}/auto-setup:${IMAGE_TAG}",
TAG_LATEST ? "${IMAGE_REPO}/auto-setup:latest" : ""
]
platforms = platforms
contexts = {
server = "target:server"
admin-tools = "target:admin-tools"
}
labels = {
"org.opencontainers.image.title" = "auto-setup"
"org.opencontainers.image.description" = "Workflow as Code (TM) to build and operate resilient applications"
"org.opencontainers.image.url" = "https://github.com/temporalio/docker-builds"
"org.opencontainers.image.source" = "https://github.com/temporalio/docker-builds"
"org.opencontainers.image.licenses" = "MIT"
}
}