mirror of
https://github.com/YuCat-OVO/BaiduNetdisk-Docker
synced 2025-05-10 20:10:04 +08:00
33 lines
580 B
HCL
33 lines
580 B
HCL
variable "DEFAULT_TAG" {
|
|
default = "baidunetdisk-docker:latest"
|
|
}
|
|
|
|
variable "ARCH" {
|
|
default = "arm64"
|
|
}
|
|
|
|
target "docker-metadata-action" {
|
|
tags = ["${DEFAULT_TAG}"]
|
|
}
|
|
// Default target if none specified
|
|
group "default" {
|
|
targets = ["image-local"]
|
|
}
|
|
|
|
target "image" {
|
|
inherits = ["docker-metadata-action"]
|
|
dockerfile = format("Dockerfile%s", equal("arm64", ARCH) ? "" : ".${ARCH}")
|
|
}
|
|
|
|
target "image-local" {
|
|
inherits = ["image"]
|
|
output = ["type=docker"]
|
|
}
|
|
|
|
target "image-all" {
|
|
inherits = ["image"]
|
|
platforms = [
|
|
"linux/amd64",
|
|
"linux/arm64",
|
|
]
|
|
} |