We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec63cc3 commit 28707dfCopy full SHA for 28707df
script.sh
@@ -55,6 +55,11 @@ for docker_file in "${docker_files[@]}" ; do
55
echo "::group:: result of build --check"
56
echo "$check_result"
57
echo "::endgroups::"
58
+ warnings=$(echo "$check_result" | jq '.warnings')
59
+ if [[ "$warnings" == "null" ]]; then
60
+ echo "No warnings found in ${docker_file}"
61
+ continue
62
+ fi
63
echo "$check_result" | jq "$docker_build_jq" \
64
| reviewdog -f=rdjson -name="docker-build-check" \
65
-reporter="${INPUT_REPORTER}" \
testdata/no_warnings/Dockerfile
@@ -0,0 +1 @@
1
+FROM alpine
testdata/Dockerfile renamed to testdata/warnings/Dockerfile
0 commit comments