Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
shmokmt committed Oct 24, 2024
1 parent 392a749 commit 03203b7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ diagnostics: .warnings | map({
})
}'

docker_files=$(git ls-files --exclude='*Dockerfile*' --ignored --cached)
docker_files=($(git ls-files --exclude='*Dockerfile*' --ignored --cached))

for docker_file in "${docker_files[@]}" ; do
export DOCKER_FILE_PATH=${docker_file}
sleep 5

echo "::group:: docker build -f ${docker_file} --call=check,format=json"
check_result=$(docker build -f "${docker_file}" --call=check,format=json . || true)
echo "::endgroup::"

echo "::group:: result of build --check"
echo "$check_result"
echo "::endgroups::"
Expand All @@ -61,6 +63,7 @@ for docker_file in "${docker_files[@]}" ; do
echo "No warnings found in ${docker_file}"
continue
fi
export DOCKER_FILE_PATH=${docker_file}
echo "$check_result" | jq "$docker_build_jq" \
| reviewdog -f=rdjson -name="docker-build-check" \
-reporter="${INPUT_REPORTER}" \
Expand Down

0 comments on commit 03203b7

Please sign in to comment.