File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ for dir in "${images[@]}"; do
9393
9494 # Does the image directory contain any Dockerfile at all?
9595 if ! find " $dir " -type f -name Dockerfile -print -quit > /dev/null; then
96- missing_dockerfile= " $( jq -c --arg n " $name " ' . + [$n] ' <<< " $missing_dockerfile " ) "
96+ # No Dockerfile contexts in this image directory; skip it silently
9797 continue
9898 fi
9999
159159
160160# Strict mode: fail if any missing
161161if [[ " $STRICT_MISSING " == " true" ]]; then
162- md_count=$( jq -r ' length' <<< " $missing_dockerfile" )
163162 mt_count=$( jq -r ' length' <<< " $missing_tags" )
164163 mc_count=$( jq -r ' length' <<< " $missing_context" )
165- if [[ " $md_count " -gt 0 || " $ mt_count" -gt 0 || " $mc_count " -gt 0 ]]; then
164+ if [[ " $mt_count " -gt 0 || " $mc_count " -gt 0 ]]; then
166165 echo " ERROR: Missing build metadata detected." >&2
167- if [[ " $md_count " -gt 0 ]]; then
168- echo " - Missing Dockerfile for images: $( jq -r ' .|join(", ")' <<< " $missing_dockerfile" ) " >&2
169- fi
170166 if [[ " $mt_count " -gt 0 ]]; then
171167 echo " - Missing or empty tags.txt for images: $( jq -r ' .|join(", ")' <<< " $missing_tags" ) " >&2
172168 fi
You can’t perform that action at this time.
0 commit comments