From a0190b16aaf091baf21d9356d47a3a301d533be2 Mon Sep 17 00:00:00 2001 From: Ruslan Mstoi Date: Fri, 12 May 2023 16:33:21 +0300 Subject: [PATCH] Add Hadolint Dockerfile Linter to CI Fixes #5332 Signed-off-by: Ruslan Mstoi --- .github/workflows/hadolint.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/hadolint.yaml diff --git a/.github/workflows/hadolint.yaml b/.github/workflows/hadolint.yaml new file mode 100644 index 000000000..e592051ec --- /dev/null +++ b/.github/workflows/hadolint.yaml @@ -0,0 +1,26 @@ +name: Lint Dockerfile + +on: + push: + paths: + - resources/Dockerfile + pull_request: + paths: + - resources/Dockerfile + +jobs: + hadolint: + name: Run Hadolint Dockerfile Linter + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Lint Dockerfile + uses: hadolint/hadolint-action@master + with: + dockerfile: ./resources/Dockerfile + format: tty + no-fail: false + verbose: true + failure-threshold: info