mirror of
https://github.com/docker/bake-action.git
synced 2025-12-06 07:48:26 +08:00
32 lines
894 B
HCL
32 lines
894 B
HCL
group "validate" {
|
|
targets = ["lint", "validate-vendor", "validate-doctoc"]
|
|
}
|
|
|
|
target "lint" {
|
|
name = "lint-${buildtags.name}"
|
|
dockerfile = "./hack/dockerfiles/lint.Dockerfile"
|
|
target = buildtags.target
|
|
output = ["type=cacheonly"]
|
|
matrix = {
|
|
buildtags = [
|
|
{ name = "default", tags = "", target = "golangci-lint" },
|
|
{ name = "labs", tags = "dfrunsecurity dfparents", target = "golangci-lint" },
|
|
{ name = "nydus", tags = "nydus", target = "golangci-lint" },
|
|
{ name = "yaml", tags = "", target = "yamllint" },
|
|
{ name = "proto", tags = "", target = "protolint" },
|
|
]
|
|
}
|
|
}
|
|
|
|
target "validate-vendor" {
|
|
dockerfile = "./hack/dockerfiles/vendor.Dockerfile"
|
|
target = "validate"
|
|
output = ["type=cacheonly"]
|
|
}
|
|
|
|
target "validate-doctoc" {
|
|
dockerfile = "./hack/dockerfiles/doctoc.Dockerfile"
|
|
target = "validate-toc"
|
|
output = ["type=cacheonly"]
|
|
}
|