-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix : container_quality_dockerfile_lint
Signed-off-by: Shubham Gupta <[email protected]>
- Loading branch information
1 parent
878da16
commit 0498038
Showing
1 changed file
with
8 additions
and
15 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 |
---|---|---|
|
@@ -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] | ||
|