Compare commits
1 Commits
3aa0e12699
...
48824781eb
| Author | SHA1 | Date | |
|---|---|---|---|
| 48824781eb |
@ -19,8 +19,8 @@ fi
|
|||||||
if [ -n "$images_changes" ]; then
|
if [ -n "$images_changes" ]; then
|
||||||
echo "Changes detected in images/. Running specific 'make' commands..."
|
echo "Changes detected in images/. Running specific 'make' commands..."
|
||||||
|
|
||||||
# Extract unique paths for `make` commands
|
# Extract unique image targets (keep only up to 3 directory levels)
|
||||||
TARGETS=$(echo "$images_changes" | sed -E 's|images/||; s|/[^/]+$||' | sort -u)
|
TARGETS=$(echo "$images_changes" | sed -E 's|^images/([^/]+/[^/]+/[^/]+).*|\1|' | sort -u)
|
||||||
|
|
||||||
# Prioritize base images first
|
# Prioritize base images first
|
||||||
BASE_TARGETS=$(echo "$TARGETS" | grep '/base$' || true)
|
BASE_TARGETS=$(echo "$TARGETS" | grep '/base$' || true)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user