add CI workflow for dockerfile sytle check using super-linter (#4)

* add dockerfile sytle workflow

* fetch-depth 0

* use slim version of super-linter

* update

* enable VALIDATE_YAML
This commit is contained in:
Bowen Liang
2026-01-16 11:29:02 +08:00
committed by GitHub
parent 1513bc0326
commit 5bb8b747d5
2 changed files with 41 additions and 1 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ jobs:
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
+40
View File
@@ -0,0 +1,40 @@
name: Style Check for Dockerfile
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
style-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
python-version: '3.11'
- name: Render Dockerfile
run: uv run python build.py
- name: Lint Dockerfile with super-linter
uses: super-linter/super-linter/slim@v8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
VALIDATE_DOCKERFILE_HADOLINT: true
VALIDATE_YAML: true