From e7531ab465cfb6f6de4e74daa043b49f69afc874 Mon Sep 17 00:00:00 2001 From: Kyle Mestery Date: Thu, 14 Jul 2022 10:32:59 -0500 Subject: [PATCH] linters: Add hadolint Dockerfile linter This adds the hadolint [1] Dockerfile linter to the IPDK CI. [1] https://github.com/hadolint/hadolint Signed-off-by: Kyle Mestery --- .github/workflows/{markdown.yml => linters.md} | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) rename .github/workflows/{markdown.yml => linters.md} (56%) diff --git a/.github/workflows/markdown.yml b/.github/workflows/linters.md similarity index 56% rename from .github/workflows/markdown.yml rename to .github/workflows/linters.md index 40f6d279..49f43848 100644 --- a/.github/workflows/markdown.yml +++ b/.github/workflows/linters.md @@ -1,4 +1,4 @@ -name: MarkdownLint +name: Linters on: push: @@ -16,3 +16,12 @@ jobs: - uses: avto-dev/markdown-lint@v1.5.0 with: args: './*.md' + + docker-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: hadolint/hadolint-action@v2.0.0 + with: + recursive: true + ignore: DL3041