Skip to content

Commit

Permalink
added hadolint to PR stage
Browse files Browse the repository at this point in the history
  • Loading branch information
garethahealy committed Nov 20, 2023
1 parent d49c6a7 commit 0ce726b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/confbatstest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: confbatstest/Dockerfile_build
ignore: DL3041 # https://github.com/hadolint/hadolint/wiki/DL3041

- name: Switch the action to use the Dockerfile_build
run: |
mv confbatstest/Dockerfile confbatstest/Dockerfile_runnable
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/github-dispatches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: github-dispatches/Dockerfile_build

- name: Switch the action to use the Dockerfile_build
run: |
mv github-dispatches/Dockerfile github-dispatches/Dockerfile_runnable
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/kyverno-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: kyverno-cli/Dockerfile_build
ignore: DL3041 # https://github.com/hadolint/hadolint/wiki/DL3041

- name: Switch the action to use the Dockerfile_build
run: |
mv kyverno-cli/Dockerfile kyverno-cli/Dockerfile_runnable
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/redhat-csp-download.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: redhat-csp-download/Dockerfile_build

- name: Switch the action to use the Dockerfile_build
run: |
mv redhat-csp-download/Dockerfile redhat-csp-download/Dockerfile_runnable
Expand Down

0 comments on commit 0ce726b

Please sign in to comment.