Add hadolint to Dockerfile.ghcr image

This commit is contained in:
mjanez 2023-09-28 09:42:22 +02:00 committed by GitHub
parent 6d0ef87ab9
commit 3c9d9166f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -86,4 +86,13 @@ jobs:
dockerfile: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }} dockerfile: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }}
version: ${{ env.HADOLINT_VERSION }} version: ${{ env.HADOLINT_VERSION }}
annotate: true annotate: true
error_level: -1
- name: Linting Dockerfile.ghcr and annotate code inline in the github PR viewer
id: hadolint_ghcr
uses: jbergstroem/hadolint-gh-action@v1.11.0
with:
dockerfile: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }}.ghcr
version: ${{ env.HADOLINT_VERSION }}
annotate: true
error_level: -1 error_level: -1