Skip to content

Commit

Permalink
dockerfile validation
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Oct 30, 2024
1 parent 6f86e02 commit a79473b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a79473b

Please sign in to comment.