Skip to content

Commit 9e09b66

Browse files
committed
add docker linter
1 parent 101557c commit 9e09b66

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/docker-lint.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Docker Linting
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
docker-lint:
10+
runs-on: ubuntu-latest
11+
container:
12+
image: hadolint/hadolint:latest-debian
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Lint Dockerfiles
19+
run: |
20+
find . -name 'Dockerfile' -print0 | xargs -0 -n1 hadolint

bin/act

17.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)