-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06fc31e
commit 591718c
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Lint | ||
on: pull_request | ||
|
||
jobs: | ||
hadolint: | ||
runs-on: ubuntu-latest | ||
name: Hadolint-your-PR | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
# Pass what names/filters you want to catch | ||
files: | | ||
**/Dockerfile.* | ||
separator: " " | ||
# Only run if expected files are changed and pass these as input | ||
- uses: jbergstroem/hadolint-gh-action@v1 | ||
if: steps.changed-files.outputs.any_changed == 'true' | ||
with: | ||
dockerfile: "${{ steps.changed-files.outputs.other_changed_files }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Lint | ||
on: pull_request | ||
|
||
jobs: | ||
hadolint: | ||
runs-on: ubuntu-latest | ||
name: Hadolint | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: jbergstroem/hadolint-gh-action@v1 |