-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
33 lines (27 loc) · 947 Bytes
/
Copy pathdocker-bake.hcl
File metadata and controls
33 lines (27 loc) · 947 Bytes
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
variable "REGISTRY" { default = "docker.io" }
variable "NAMESPACE" { default = "binarycodes" }
# APP_NAME must match the Maven artifactId: the Dockerfile copies the jar as
# target/${APP_NAME}-${APP_VERSION}.jar. CI overrides it from project.artifactId,
# so this default only applies to a local `docker buildx bake`.
variable "APP_NAME" { default = "whichday" }
variable "APP_VERSION" { default = "0.0.0-SNAPSHOT" }
# The published image name. Nothing overrides this, in CI or otherwise.
variable "TAG_NAME" { default = "whichday" }
variable "GIT_SHA" { default = "" }
group "default" {
targets = ["app"]
}
target "app" {
context = "."
dockerfile = "Dockerfile"
args = {
APP_NAME = APP_NAME
APP_VERSION = APP_VERSION
GIT_SHA = GIT_SHA
}
tags = [
"${REGISTRY}/${NAMESPACE}/${TAG_NAME}:${APP_VERSION}",
"${REGISTRY}/${NAMESPACE}/${TAG_NAME}:latest",
]
platforms = ["linux/amd64", "linux/arm64"]
}