-
Notifications
You must be signed in to change notification settings - Fork 220
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
50 lines (43 loc) · 1.23 KB
/
docker-bake.hcl
File metadata and controls
50 lines (43 loc) · 1.23 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
variable "REGISTRY" {
default = "ghcr.io"
}
variable "REPOSITORY" {
default = "commonwarexyz/monorepo"
}
variable "DEFAULT_TAG" {
default = "commonware:local"
}
variable "PLATFORMS" {
// Only specify a single platform when `--load` ing into docker.
// Multi-platform is supported when outputting to disk or pushing to a registry.
// Multi-platform builds can be tested locally with: --set="*.output=type=image,push=false"
default = "linux/amd64,linux/arm64"
}
// Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
tags = ["${DEFAULT_TAG}"]
}
target "riscv-unknown-elf-toolchain" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "docker/riscv-unknown-elf-toolchain.dockerfile"
platforms = split(",", PLATFORMS)
}
target "rust-riscv32imac-cross" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "docker/rust-riscv-cross.dockerfile"
args = {
ARCH = "riscv32imac"
}
platforms = split(",", PLATFORMS)
}
target "rust-riscv64imac-cross" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "docker/rust-riscv-cross.dockerfile"
args = {
ARCH = "riscv64imac"
}
platforms = split(",", PLATFORMS)
}