Remove service image overrides from kustomization - use base manifest tags [skip ci]
This commit is contained in:
@@ -50,7 +50,7 @@ spec:
|
||||
if [ "$COMMIT_COUNT" -lt 2 ]; then
|
||||
echo "Not enough git history for change detection (need at least 2 commits)"
|
||||
echo "Building all services as fallback"
|
||||
echo "all" > $(results.changed-services.path)
|
||||
echo -n "all" > $(results.changed-services.path)
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -60,7 +60,7 @@ spec:
|
||||
if [ -z "$CHANGED_FILES" ]; then
|
||||
# Empty commit or something unusual - skip build
|
||||
echo "No file changes detected in last commit"
|
||||
echo "infrastructure" > $(results.changed-services.path)
|
||||
echo -n "infrastructure" > $(results.changed-services.path)
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -106,15 +106,17 @@ spec:
|
||||
# shared/ contains code used by services and gateway (NOT frontend), so rebuild them
|
||||
if echo "$CHANGED_FILES" | grep -q '^shared/'; then
|
||||
echo "Detected changes in shared/ - triggering rebuild of all services and gateway"
|
||||
echo "services-and-gateway" > $(results.changed-services.path)
|
||||
echo -n "services-and-gateway" > $(results.changed-services.path)
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# IMPORTANT: Use echo -n (no newline) to avoid trailing newline in results
|
||||
# Trailing newlines cause Tekton when expressions to fail matching
|
||||
if [ -z "$CHANGED_SERVICES" ]; then
|
||||
# Changes are in infrastructure or other non-service files
|
||||
echo "Detected: infrastructure changes only"
|
||||
echo "infrastructure" > $(results.changed-services.path)
|
||||
echo -n "infrastructure" > $(results.changed-services.path)
|
||||
else
|
||||
echo "Detected changed services: $CHANGED_SERVICES"
|
||||
echo "$CHANGED_SERVICES" > $(results.changed-services.path)
|
||||
echo -n "$CHANGED_SERVICES" > $(results.changed-services.path)
|
||||
fi
|
||||
Reference in New Issue
Block a user