forked from temporalio/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
53 lines (42 loc) · 1.36 KB
/
docker-bake.hcl
File metadata and controls
53 lines (42 loc) · 1.36 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
variable "IMAGE_REPO" {
default = "ghcr.io"
}
variable "IMAGE_NAMESPACE" {
default = ""
}
variable "IMAGE_NAME" {
default = "temporal"
}
variable "GITHUB_REPOSITORY" {
default = "temporalio/cli"
}
variable "IMAGE_SHA_TAG" {}
variable "IMAGE_BRANCH_TAG" {}
variable "CLI_SHA" {
default = ""
}
variable "VERSION" {
default = "dev"
}
variable "TAG_LATEST" {
default = false
}
target "cli" {
dockerfile = "Dockerfile"
context = "."
tags = compact([
IMAGE_REPO == "" ? "${IMAGE_NAMESPACE}/${IMAGE_NAME}:${IMAGE_SHA_TAG}" : "${IMAGE_REPO}/${IMAGE_NAMESPACE}/${IMAGE_NAME}:${IMAGE_SHA_TAG}",
IMAGE_REPO == "" ? "${IMAGE_NAMESPACE}/${IMAGE_NAME}:${VERSION}" : "${IMAGE_REPO}/${IMAGE_NAMESPACE}/${IMAGE_NAME}:${VERSION}",
TAG_LATEST ? (IMAGE_REPO == "" ? "${IMAGE_NAMESPACE}/${IMAGE_NAME}:latest" : "${IMAGE_REPO}/${IMAGE_NAMESPACE}/${IMAGE_NAME}:latest") : "",
])
platforms = ["linux/amd64", "linux/arm64"]
labels = {
"org.opencontainers.image.title" = "temporal"
"org.opencontainers.image.description" = "Temporal CLI"
"org.opencontainers.image.url" = "https://github.com/${GITHUB_REPOSITORY}"
"org.opencontainers.image.source" = "https://github.com/${GITHUB_REPOSITORY}"
"org.opencontainers.image.licenses" = "MIT"
"org.opencontainers.image.revision" = "${CLI_SHA}"
"org.opencontainers.image.created" = timestamp()
}
}