mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Adds a CI job for hadolint over all the Dockerfiles, fixes the minor thing it complained about
This commit is contained in:
23
.github/workflows/reusable-ci-backend.yml
vendored
23
.github/workflows/reusable-ci-backend.yml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user