generated from woodpecker-plugins/.plugin-template
ci: add workflow for linting Dockerfile with hadolint
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
parent
2d495f7c05
commit
8d3770b68f
1 changed files with 15 additions and 0 deletions
15
.woodpecker/lint.yaml
Normal file
15
.woodpecker/lint.yaml
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue