Skip to content

Commit

Permalink
Create hadolint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Apr 11, 2022
1 parent 959742a commit 70fec85
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: hadolint

on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-20.04
container:
image: 'hadolint/hadolint:v2.10.0-alpine'
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- name: Lint Dockerfile
run: |
for d in $(find . -type f -name "Dockerfile" -exec dirname {} \;); do
(cd ${d} && hadolint Dockerfile)
done

0 comments on commit 70fec85

Please sign in to comment.