Auto-update ccl (#82) #60
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: Lint Dockerfiles | |
on: | |
push: | |
paths: | |
- '**/Dockerfile' | |
- '**/Dockerfile.edge' | |
- '.github/workflows/hadolint.yml' | |
jobs: | |
lint: | |
name: Lint Dockerfiles | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install hadolint | |
run: | | |
curl -L -o ./hadolint "https://github.com/hadolint/hadolint/releases/download/v1.17.4/hadolint-$(uname -s)-$(uname -m)" | |
chmod 700 ./hadolint | |
./hadolint -v | |
- name: Run hadolint | |
run: | | |
git ls-files --exclude='Dockerfile*' --ignored --cached | grep -v Dockerfile.template | xargs --max-lines=1 ./hadolint |