feat: add python and make (#9)
Deploy / build (push) Successful in 18m22s

- add python and make to the base images
- remove make, python and jq from images derived from base

Reviewed-on: https://git.query.consul/unkin/packer-images/pulls/9
This commit was merged in pull request #9.
This commit is contained in:
2025-03-09 17:50:37 +11:00
parent f92b6f13ff
commit eb1aee35c5
10 changed files with 38 additions and 26 deletions
+14 -3
View File
@@ -20,9 +20,20 @@ if [ -n "$images_changes" ]; then
echo "Changes detected in images/. Running specific 'make' commands..."
# Extract unique paths for `make` commands
export TARGETS=$(echo "$images_changes" | sed -E 's|images/||; s|/[^/]+$||' | sort -u)
echo $TARGETS
for target in $TARGETS; do
TARGETS=$(echo "$images_changes" | sed -E 's|images/||; s|/[^/]+$||' | sort -u)
# Prioritize base images first
BASE_TARGETS=$(echo "$TARGETS" | grep '/base$' || true)
OTHER_TARGETS=$(echo "$TARGETS" | grep -v '/base$' || true)
# Build base images first
for target in $BASE_TARGETS; do
echo "Running 'make $target' (base image first)..."
make "$target"
done
# Then build other images
for target in $OTHER_TARGETS; do
echo "Running 'make $target'..."
make "$target"
done