[pull] main from kyma-project:main #339
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pull-validate-dockerfiles | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/pull-validate-dockerfiles.yaml' | |
- '**/Dockerfile' | |
env: | |
HADOLINT_VERSION: v2.12.0 | |
jobs: | |
hadolint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install hadolint | |
run: | | |
sudo wget -O /bin/hadolint https://github.com/hadolint/hadolint/releases/download/${{ env.HADOLINT_VERSION }}/hadolint-Linux-x86_64 | |
sudo chmod +x /bin/hadolint | |
- run: find "." -type f -name "Dockerfile" -exec "hadolint" {} + |