-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
52 lines (43 loc) · 1.01 KB
/
docker-bake.hcl
File metadata and controls
52 lines (43 loc) · 1.01 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
## https://docs.docker.com/build/bake/
## https://docs.docker.com/reference/cli/docker/buildx/bake/#set
## https://github.com/crazy-max/buildx#remote-with-local
## https://github.com/docker/metadata-action
## Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {}
variable "DEFAULT_IMAGE" {
default = "jetsung/rclone-backup"
}
target "_image" {
inherits = ["docker-metadata-action"]
}
target "_common" {
labels = {
"org.opencontainers.image.authors" = "Jetsung Chan<i@jetsung.com>"
}
context = "."
dockerfile = "docker/Dockerfile"
args = {
}
platforms = ["linux/amd64"]
}
target "default" {
inherits = ["_common"]
args = {
}
tags = [
"${DEFAULT_IMAGE}:local",
]
}
group "dev" {
targets = ["dev"]
}
target "dev" {
inherits = ["_common", "_image"]
}
group "release" {
targets = ["release"]
}
target "release" {
inherits = ["_common", "_image"]
platforms = ["linux/amd64","linux/arm64"]
}