dockerfile validation

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-10-30 08:46:18 +01:00
parent 6f86e0250d
commit a79473b652
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4

View File

@ -21,7 +21,7 @@ group "pre-checkin" {
}
group "validate" {
targets = ["lint", "vendor-validate", "license-validate"]
targets = ["lint", "vendor-validate", "dockerfile-validate", "license-validate"]
}
target "build" {
@ -54,6 +54,18 @@ target "vendor-validate" {
output = ["type=cacheonly"]
}
target "dockerfile-validate" {
matrix = {
dockerfile = [
"dev.Dockerfile",
"./hack/dockerfiles/license.Dockerfile"
]
}
name = "dockerfile-validate-${md5(dockerfile)}"
dockerfile = dockerfile
call = "check"
}
target "test" {
dockerfile = "dev.Dockerfile"
target = "test"