filter build targets to require a dockerfile

This commit is contained in:
Elijah Duffy
2025-12-07 19:00:18 -08:00
parent 4e1a68c330
commit c34735e6ff

View File

@@ -33,6 +33,18 @@ jobs:
# Discover lanes: immediate subdirs under docker/ # Discover lanes: immediate subdirs under docker/
mapfile -t ALL_LANES < <(find docker -mindepth 1 -maxdepth 1 -type d | sort) mapfile -t ALL_LANES < <(find docker -mindepth 1 -maxdepth 1 -type d | sort)
# Filter to only directories that contain a Dockerfile (real lanes)
FILTERED_LANES=()
SKIPPED_LANES=()
for _d in "${ALL_LANES[@]}"; do
if [[ -f "${_d}/Dockerfile" ]]; then
FILTERED_LANES+=("${_d}")
else
SKIPPED_LANES+=("${_d}")
fi
done
ALL_LANES=("${FILTERED_LANES[@]}")
# Also capture lane basenames (e.g. '7.4', 'nginx') for stable naming # Also capture lane basenames (e.g. '7.4', 'nginx') for stable naming
ALL_NAMES=() ALL_NAMES=()
for _d in "${ALL_LANES[@]}"; do for _d in "${ALL_LANES[@]}"; do