Skip to content

Commit c888041

Browse files
committed
hack: lint bake target
Signed-off-by: CrazyMax <[email protected]>
1 parent 416883f commit c888041

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test:
2828

2929
.PHONY: lint
3030
lint:
31-
./hack/lint
31+
$(BUILDX_CMD) bake lint
3232

3333
.PHONY: validate-vendor
3434
validate-vendor:

docker-bake.hcl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ target "_common" {
1515
}
1616

1717
group "validate" {
18-
targets = ["validate-vendor"]
18+
targets = ["lint", "validate-vendor"]
19+
}
20+
21+
target "lint" {
22+
inherits = ["_common"]
23+
dockerfile = "./hack/dockerfiles/lint.Dockerfile"
24+
output = ["type=cacheonly"]
1925
}
2026

2127
target "validate-vendor" {

hack/lint

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)