Skip to content

Commit 1882c91

Browse files
committed
refactor: forking in progress
1 parent 4fe374c commit 1882c91

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scripts/discover-build-matrix.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

@@ -159,14 +159,10 @@ fi
159159

160160
# Strict mode: fail if any missing
161161
if [[ "$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

0 commit comments

Comments
 (0)