Skip to content

Commit

Permalink
fix : container_quality_dockerfile_lint
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
shubham-cmyk committed Aug 2, 2023
1 parent 878da16 commit 0498038
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/operator-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,14 @@ jobs:
needs: [gofmt, govet]
runs-on: ubuntu-20.04
steps:
- name: Executing dockerlinter
run: |
#!/bin/bash
download_hadolint() {
wget https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64
chmod +x hadolint-Linux-x86_64
}
execute_hadolint() {
./hadolint-Linux-x86_64 Dockerfile --ignore DL3007 --ignore DL3018
}
main() {
download_hadolint
execute_hadolint
}
main
- name: Checkout code
uses: actions/checkout@v3

- name: Execute dockerlinter
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
ignore: DL3007,DL3018

build_go_binary:
needs: [code_quality_golang_ci_lint]
Expand Down

0 comments on commit 0498038

Please sign in to comment.