From fa313cb6ee808ffac7cbc03a19ca2ba2aad8ad24 Mon Sep 17 00:00:00 2001 From: grasdk Date: Tue, 23 Apr 2024 21:57:03 +0200 Subject: [PATCH] added github action for hadolint --- .github/workflows/dockerfile-hadolint.yml | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/dockerfile-hadolint.yml diff --git a/.github/workflows/dockerfile-hadolint.yml b/.github/workflows/dockerfile-hadolint.yml new file mode 100644 index 0000000..d155d99 --- /dev/null +++ b/.github/workflows/dockerfile-hadolint.yml @@ -0,0 +1,25 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning. + +name: Lint Dockerfile + +on: + push: + branches: + - '**' +jobs: + dockerfile_linting: + name: Dockerfile linting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: hadolint/hadolint-action@v3.1.0 + with: + dockerfile: ./Dockerfile + config: ./.config/hadolint.yml