Skip to content

Commit bf70e88

Browse files
committed
Makefile: add check-docker
1 parent 7fa39a5 commit bf70e88

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,15 @@ check-bash: ## Run shellcheck on bash scripts
325325
shellcheck ./scripts/**/*.sh -S warning
326326
shellcheck ./buildkite/scripts/**/*.sh -S warning
327327

328+
.PHONY: check-docker
329+
check-docker: ## Run hadolint on Docker files
330+
ifdef BUILDKITE
331+
hadolint dockerfiles/Dockerfile-*
332+
else
333+
docker run --rm -v $(PWD):/workspace -w /workspace \
334+
hadolint/hadolint hadolint dockerfiles/Dockerfile-*
335+
endif
336+
328337
########################################
329338
## Artifacts
330339

0 commit comments

Comments
 (0)