Skip to content

Commit

Permalink
Should lint all dockerfiles correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
grasdk committed Oct 25, 2024
1 parent 5127251 commit 526eb94
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/dockerfile-hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,41 @@
# 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
name: Lint Dockerfiles

on:
push:
branches:
- '**'

jobs:
dockerfile_linting:
name: Dockerfile linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: List Docker directory contents
run: ls -R ./docker
- uses: hadolint/hadolint-action@v3.1.0
- name: Lint Alpine Dockerfile
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: ./docker/alpine/Dockerfile.build
config: ./docker/.config/hadolint.yml
- name: Lint Debian Bookworm Dockerfile
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: ./docker/debian-bookworm/Dockerfile.build
config: ./docker/.config/hadolint.yml
- name: Lint Debian Bullseye Dockerfile
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: ./docker/debian-bullseye/Dockerfile.build
config: ./docker/.config/hadolint.yml
- name: Lint Debian Buster Dockerfile
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: ./docker/debian-buster/Dockerfile.build
config: ./docker/.config/hadolint.yml
- name: Lint Debian Buster Self-contained Dockerfile
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: ./docker/debian-buster/selfcontained/Dockerfile
config: ./docker/.config/hadolint.yml

0 comments on commit 526eb94

Please sign in to comment.