lint dockerfiles with hadolint

This commit is contained in:
Karol Wypchlo 2022-03-31 11:49:42 +02:00
parent f3ec613a5a
commit 9711bc096c
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 27 additions and 0 deletions

27
.github/workflows/lint-dockerfiles.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Dockerfile Lint
on:
push:
branches:
- main
pull_request:
jobs:
hadolint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dockerfile:
- docker/nginx/Dockerfile
- docker/sia/Dockerfile
- packages/dashboard/Dockerfile
- packages/dnslink-api/Dockerfile
- packages/handshake-api/Dockerfile
- packages/health-check/Dockerfile
- packages/website/Dockerfile
steps:
- uses: actions/checkout@v3
- uses: hadolint/hadolint-action@v2.0.0
with:
dockerfile: ${{ matrix.dockerfile }}