Fix resources isues 26
This commit is contained in:
@@ -97,7 +97,7 @@ spec:
|
||||
|
||||
# Stage 4: Build and push container images
|
||||
- name: build-and-push
|
||||
runAfter: [run-tests]
|
||||
runAfter: [detect-changes]
|
||||
taskRef:
|
||||
name: kaniko-build
|
||||
when:
|
||||
|
||||
@@ -66,9 +66,12 @@ spec:
|
||||
echo "Services param: $(params.services)"
|
||||
echo "==================================================================="
|
||||
|
||||
SERVICES_PARAM="$(params.services)"
|
||||
# Trim whitespace and newlines from services param
|
||||
SERVICES_PARAM=$(echo "$(params.services)" | tr -d '\n' | tr -d ' ')
|
||||
WORKSPACE="$(workspaces.source.path)"
|
||||
|
||||
echo "Trimmed services param: '$SERVICES_PARAM'"
|
||||
|
||||
# Handle "all" case by discovering services from workspace
|
||||
if [ "$SERVICES_PARAM" = "all" ]; then
|
||||
echo "Building all services - discovering from workspace..."
|
||||
|
||||
Reference in New Issue
Block a user