Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/dockerfile-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dockerfile Linter

on:
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Dockerfile lint
# https://github.com/hadolint/hadolint
# TODO: find better alternatives?
# Do no fail the workflow on linter error at initial phase, will update this workflow later
run: docker run --rm -i hadolint/hadolint < Dockerfile || true