hack: add license headers tool

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-01-31 03:33:48 +01:00
parent e218647127
commit 152b37e0f7
2 changed files with 46 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ group "pre-checkin" {
}
group "validate" {
targets = ["lint", "vendor-validate"]
targets = ["lint", "vendor-validate", "license-validate"]
}
target "build" {
@@ -69,3 +69,15 @@ target "publish" {
output = ["type=cacheonly"]
secret = ["id=NODE_AUTH_TOKEN,env=NODE_AUTH_TOKEN"]
}
target "license-validate" {
dockerfile = "./hack/dockerfiles/license.Dockerfile"
target = "validate"
output = ["type=cacheonly"]
}
target "license-update" {
dockerfile = "./hack/dockerfiles/license.Dockerfile"
target = "update"
output = ["."]
}