ci: add workflow for linting Dockerfile with hadolint

Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
Vojtěch Mareš 2025-09-08 15:39:29 +02:00
parent 2d495f7c05
commit 8d3770b68f
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

15
.woodpecker/lint.yaml Normal file
View file

@ -0,0 +1,15 @@
when:
- event: [pull_request, tag, cron]
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
- renovate/*
steps:
lint-dockerfile:
image: ghcr.io/hadolint/hadolint:v2.13.1-alpine # 2025-09-02
depends_on: []
commands:
- hadolint --ignore DL3003 --ignore DL3018 Dockerfile
when:
path: "Dockerfile"