diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..6839f5f --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,18 @@ +name: "Pull Request" +on: + pull_request: + branches: + - main + +jobs: + lint: + strategy: + matrix: + version: [ 'buster', 'bullseye', 'bookworm' ] + runs-on: ubuntu-latest + container: pipelinecomponents/hadolint:latest + steps: + - uses: actions/checkout@v2 + - uses: hadolint/hadolint-action@v1.5.0 + with: + dockerfile: ./src/${{ matrix.version }}/src/Dockerfile