Skip to content

Dockerfile lint

Dockerfile lint #17

Workflow file for this run

name: Static Linting
on:
push:
branches:
- main
pull_request:
jobs:
bun-lint:
runs-on: ubuntu-latest
steps:
# setup
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2
- name: Setup Biome
uses: biomejs/setup-biome@1cbe33ead22c7a2fded3b52fa2893611c815c9b5 # v2
# lint
- run: bun install
- run: bun lint:docs:ja
# bun lint may be biome, so you may not need to run.
- run: biome ci .
hadolint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
dockle:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build an image from Dockerfile
run: |
docker build -t built-image:scan .
- name: Run dockle
uses: goodwithtech/dockle-action@main
with:
image: 'built-image:scan'
# format: 'list'
# exit-code: '1'
# exit-level: 'warn'