Skip to content

Commit a0746b1

Browse files
committedAug 15, 2024·
ci: Add hadolint workflow for Dockerfile linting
1 parent 9fe9906 commit a0746b1

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
 

‎.github/workflows/hadolint.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: hadolint
3+
4+
run-name: Hadolint
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- "main"
10+
11+
concurrency:
12+
group: ${{ github.ref }}-${{ github.workflow }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
skip_duplicate_actions:
17+
name: Skip Duplicate Actions
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: fkirc/skip-duplicate-actions@master
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
cancel_others: true
24+
concurrent_skipping: never
25+
26+
hadolint:
27+
name: Hadolint
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0
34+
35+
- name: Call Dagger Function
36+
uses: dagger/dagger-for-github@v6
37+
with:
38+
args: check --source=. stdout
39+
module: github.com/softwaredevelop/daggerverse/hadolint@main
40+
verb: call
41+
version: "latest"

0 commit comments

Comments
 (0)
Please sign in to comment.