mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
23 lines
471 B
YAML
23 lines
471 B
YAML
---
|
|
# Hadolint's official docker image is based on 'scratch', and takes only one input file at a time.
|
|
# I have no clue how to fix that at the time of writing so let's just use the local command.
|
|
|
|
|
|
bootstrap:
|
|
commands:
|
|
hadolint:
|
|
run: brew install 'hadolint'
|
|
|
|
lint:
|
|
commands:
|
|
docker: &hadolint
|
|
glob: "*[Dd]ockerfile*"
|
|
run: hadolint {all_files}
|
|
|
|
|
|
pre-commit:
|
|
commands:
|
|
lint-docker:
|
|
<<: *hadolint
|
|
run: hadolint {staged_files}
|