Use hadolint to check dockerfile

This commit is contained in:
Maxime Hélias
2022-12-21 09:54:34 +01:00
committed by Maxime Helias
parent f464553da4
commit 8b82b74f52
2 changed files with 30 additions and 14 deletions

View File

@@ -5,6 +5,17 @@ on:
pull_request:
jobs:
lint:
name: Docker Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Lint Dockerfile
uses: hadolint/hadolint-action@master
with:
dockerfile: Dockerfile
ignore: DL3007,DL3018 # Ignore using latest on mlocati/php-extension-installer & version in apk add
build:
name: Docker build
runs-on: ubuntu-latest