forked from temporalio/temporal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
88 lines (78 loc) · 2.53 KB
/
docker-bake.hcl
File metadata and controls
88 lines (78 loc) · 2.53 KB
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
variable "SERVER_VERSION" {
default = "unknown"
}
variable "CLI_VERSION" {
default = "unknown"
}
variable "IMAGE_REPO" {
default = "temporaliotest"
}
variable "IMAGE_SHA_TAG" {
default = ""
}
variable "IMAGE_BRANCH_TAG" {
default = ""
}
variable "SAFE_IMAGE_BRANCH_TAG" {
default = join("-", [for c in regexall("[a-z0-9]+", lower(IMAGE_BRANCH_TAG)) : c])
}
variable "TEMPORAL_SHA" {
default = ""
}
variable "TAG_LATEST" {
default = false
}
# IMPORTANT: When updating ALPINE_TAG, also update the default value in:
# - docker/targets/admin-tools.Dockerfile
# - docker/targets/server.Dockerfile
variable "ALPINE_TAG" {
default = "3.23@sha256:c78ded0fee4493809c8ca71d4a6057a46237763d952fae15ea418f6d14137f2d"
}
target "admin-tools" {
context = "docker"
dockerfile = "targets/admin-tools.Dockerfile"
args = {
ALPINE_TAG = "${ALPINE_TAG}"
}
tags = compact([
"${IMAGE_REPO}/admin-tools:${IMAGE_SHA_TAG}",
"${IMAGE_REPO}/admin-tools:${SAFE_IMAGE_BRANCH_TAG}",
TAG_LATEST ? "${IMAGE_REPO}/admin-tools:latest" : "",
])
platforms = ["linux/amd64", "linux/arm64"]
labels = {
"org.opencontainers.image.title" = "admin-tools"
"org.opencontainers.image.description" = "Temporal admin tools"
"org.opencontainers.image.url" = "https://github.com/temporalio/temporal"
"org.opencontainers.image.source" = "https://github.com/temporalio/temporal"
"org.opencontainers.image.licenses" = "MIT"
"org.opencontainers.image.revision" = "${TEMPORAL_SHA}"
"org.opencontainers.image.created" = timestamp()
"com.temporal.server.version" = "${SERVER_VERSION}"
"com.temporal.cli.version" = "${CLI_VERSION}"
}
}
target "server" {
context = "docker"
dockerfile = "targets/server.Dockerfile"
args = {
ALPINE_TAG = "${ALPINE_TAG}"
}
tags = compact([
"${IMAGE_REPO}/server:${IMAGE_SHA_TAG}",
"${IMAGE_REPO}/server:${SAFE_IMAGE_BRANCH_TAG}",
TAG_LATEST ? "${IMAGE_REPO}/server:latest" : "",
])
platforms = ["linux/amd64", "linux/arm64"]
labels = {
"org.opencontainers.image.title" = "server"
"org.opencontainers.image.description" = "Temporal Server"
"org.opencontainers.image.url" = "https://github.com/temporalio/temporal"
"org.opencontainers.image.source" = "https://github.com/temporalio/temporal"
"org.opencontainers.image.licenses" = "MIT"
"org.opencontainers.image.version" = "${SERVER_VERSION}"
"org.opencontainers.image.revision" = "${TEMPORAL_SHA}"
"org.opencontainers.image.created" = timestamp()
"com.temporal.server.version" = "${SERVER_VERSION}"
}
}