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 1398110
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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.
failure-threshold: error

0 comments on commit 1398110

Please sign in to comment.