mirror of
https://github.com/docker/bake-action.git
synced 2025-12-06 07:48:26 +08:00
list-targets subaction
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
31
test/group-matrix/docker-bake.hcl
Normal file
31
test/group-matrix/docker-bake.hcl
Normal file
@@ -0,0 +1,31 @@
|
||||
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"]
|
||||
}
|
||||
Reference in New Issue
Block a user