Skip to content

ci:lint-dockerfile #972

ci:lint-dockerfile

ci:lint-dockerfile #972

name: ci:lint-dockerfile
on:
push:
branches:
- main
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
name: Continuous integration (lint dockerfile)
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Work around https://github.com/hadolint/hadolint/issues/978
run: |
grep -v '^ --start-interval=' Dockerfile > Dockerfile.patched
- name: Lint Dockerfile 👕
run: |
< ./Dockerfile.patched docker run --rm -i -v ./.hadolint.yaml:/.config/hadolint.yaml hadolint/hadolint