Skip to content

Commit

Permalink
Add dockerfile linter in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Ziwen Ning <[email protected]>
  • Loading branch information
ningziwen committed Jan 10, 2024
1 parent 52c7c9b commit 219c9b0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
permissions:
id-token: write
contents: write

jobs:
dockerfile-linter:
runs-on: ubuntu-latest
env:
HADOLINT_RECURSIVE: "true"
steps:
- uses: actions/checkout@v3
- uses: hadolint/[email protected]
with:
dockerfile: Dockerfile.*
recursive: true
# TODO: enable more linter rules other than error.
override-warning: true
override-info: true
override-style: true

0 comments on commit 219c9b0

Please sign in to comment.