We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af83fd0 commit 1cb0bc8Copy full SHA for 1cb0bc8
.github/workflows/docker-pipeline.yaml
@@ -14,6 +14,20 @@ jobs:
14
name: lint dockerfiles
15
runs-on: [ubuntu-latest]
16
steps:
17
- - name: Checkout Code
18
- uses: actions/checkout@v3
19
-
+ - name: Checkout Code
+ uses: actions/checkout@v3
+ - name: Install hadolint
20
+ runs: |
21
+ sudo wget -O /usr/local/bin/hadolint \
22
+ https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64
23
+ sudo chmod +x /usr/local/bin/hadolint
24
+ - name: Find and Lint Dockerfiles
25
+ run: |
26
+ find . -name "Dockerfile" | while read dockerfile; do
27
+ echo "Linting $dockerfile"
28
+ hadolint "$dockerfile"
29
+ done
30
+
31
32
33
0 commit comments