mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-22 19:06:09 +08:00
dockerfile validation
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
6f86e0250d
commit
a79473b652
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user