rust-template/docker-bake.hcl
2023-09-12 22:02:14 +02:00

33 lines
670 B
HCL

variable "REG" {
default = "git.snrd.eu"
}
variable "REPO" {
default = "${REPO_OWNER}/${REPO_NAME}"
}
variable "TAG" {
default = "latest"
}
group "default" {
targets = ["prod"]
}
target "default" {
#platforms = [ "linux/amd64", "linux/arm64", "linux/arm/v7", "linux/riscv64" ]
tags = ["${REG}/${REPO}:latest", "${REG}/${REPO}:${TAG}"]
attest = [
"type=provenance,disabled=true",
"type=sbom,disabled=true"
]
}
target "prod" {
inherits = ["default"]
dockerfile = "Dockerfile"
#dockerfile = "Dockerfile.multiarch"
output = ["type=registry"]
}
target "dev" {
inherits = ["default"]
dockerfile = "Dockerfile"
output = ["type=image"]
}