feat: build base before other
Build / build (pull_request) Successful in 13m53s

- ensure base images are build first
This commit is contained in:
2025-03-09 17:21:51 +11:00
parent 63afa81440
commit ccf7eba6b5
2 changed files with 28 additions and 6 deletions
+14 -3
View File
@@ -20,16 +20,27 @@ DIRS := $(shell find $(IMAGES_PATH) -mindepth 3 -maxdepth 3 -type d | sed 's|$(I
default: clean
./ci/build.sh
# Make all images
# Separate base images from others
BASE_IMAGES = $(filter %/base,$(DIRS))
OTHER_IMAGES = $(filter-out %/base,$(DIRS))
# Make all images, ensuring base images build first
all:
@for dir in $(DIRS); do \
@for dir in $(BASE_IMAGES); do \
$(MAKE) $$dir; \
done
@for dir in $(OTHER_IMAGES); do \
$(MAKE) $$dir; \
done
# List all directories
list:
@echo "Images:"
@for dir in $(DIRS); do \
@for dir in $(BASE_IMAGES); do \
echo " '$$dir'"; \
done
@for dir in $(OTHER_IMAGES); do \
echo " '$$dir'"; \
done