Files
Charon/.github/workflows/docker-lint.yml

32 lines
774 B
YAML

name: Docker Lint
on:
push:
branches: [ main, development, 'feature/**', 'hotfix/**' ]
paths:
- 'Dockerfile'
pull_request:
branches: [ main, development, 'feature/**', 'hotfix/**' ]
paths:
- 'Dockerfile'
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Run Hadolint
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: Dockerfile
config: .hadolint.yaml
failure-threshold: error