Skip to content

Commit 03203b7

Browse files
committed
fixup
1 parent 392a749 commit 03203b7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

script.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@ diagnostics: .warnings | map({
4747
})
4848
}'
4949

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

5252
for docker_file in "${docker_files[@]}" ; do
53-
export DOCKER_FILE_PATH=${docker_file}
54-
sleep 5
53+
54+
echo "::group:: docker build -f ${docker_file} --call=check,format=json"
5555
check_result=$(docker build -f "${docker_file}" --call=check,format=json . || true)
56+
echo "::endgroup::"
57+
5658
echo "::group:: result of build --check"
5759
echo "$check_result"
5860
echo "::endgroups::"
@@ -61,6 +63,7 @@ for docker_file in "${docker_files[@]}" ; do
6163
echo "No warnings found in ${docker_file}"
6264
continue
6365
fi
66+
export DOCKER_FILE_PATH=${docker_file}
6467
echo "$check_result" | jq "$docker_build_jq" \
6568
| reviewdog -f=rdjson -name="docker-build-check" \
6669
-reporter="${INPUT_REPORTER}" \

0 commit comments

Comments
 (0)