Adds a CI job for hadolint over all the Dockerfiles, fixes the minor thing it complained about

This commit is contained in:
Trenton Holmes
2022-07-15 13:45:23 -07:00
parent 4444925dea
commit daad634894
2 changed files with 36 additions and 14 deletions

View File

@@ -106,3 +106,26 @@ jobs:
run: |
cd src/
pipenv run coveralls --service=github
dockerfile-lint:
name: "Lint ${{ matrix.dockerfile }}"
runs-on: ubuntu-20.04
strategy:
matrix:
dockerfile:
- Dockerfile
- docker-builders/Dockerfile.qpdf
- docker-builders/Dockerfile.jbig2enc
- docker-builders/Dockerfile.psycopg2
- docker-builders/Dockerfile.pikepdf
fail-fast: false
steps:
-
name: Checkout
uses: actions/checkout@v3
-
uses: hadolint/hadolint-action@v2.0.0
with:
failure-threshold: warning
dockerfile: ${{ matrix.dockerfile }}
ignore: DL3008,DL3013,DL3003