rust-template/docker-bake.hcl

34 lines
687 B
HCL
Raw Normal View History

2023-09-12 22:00:49 +02:00
variable "REG" {
default = "git.snrd.eu"
}
variable "REPO" {
2023-09-12 22:31:57 +02:00
default = "${REPO_OWNER_LOWER}/${REPO_NAME_LOWER}"
2023-09-12 22:00:49 +02:00
}
variable "TAG" {
default = "latest"
}
group "default" {
targets = ["prod"]
}
target "default" {
#platforms = [ "linux/amd64", "linux/arm64", "linux/arm/v7", "linux/riscv64" ]
2023-09-12 22:31:57 +02:00
tags = ["$${REG}/$${REPO}:latest", "$${REG}/$${REPO}:$${TAG}"]
2023-09-12 22:00:49 +02:00
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"]
}