1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-01-02 03:37:54 +02:00

Should lint all dockerfiles correctly

This commit is contained in:
Chris 2024-10-25 23:51:53 +02:00
parent 512725189b
commit 526eb940f4

View File

@ -7,21 +7,41 @@
# To get a newer version, you will need to update the SHA. # 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. # You can also reference a tag or branch, but the action may change without warning.
name: Lint Dockerfile name: Lint Dockerfiles
on: on:
push: push:
branches: branches:
- '**' - '**'
jobs: jobs:
dockerfile_linting: dockerfile_linting:
name: Dockerfile linting name: Dockerfile linting
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: List Docker directory contents - name: Lint Alpine Dockerfile
run: ls -R ./docker uses: hadolint/hadolint-action@v3.1.0
- uses: hadolint/hadolint-action@v3.1.0
with: with:
dockerfile: ./docker/alpine/Dockerfile.build 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 config: ./docker/.config/hadolint.yml