From 321afbc5d6e9605439d38307a4e1f1189847396a Mon Sep 17 00:00:00 2001 From: Bakery Admin Date: Thu, 22 Jan 2026 21:20:44 +0100 Subject: [PATCH] Fix resources isues 26 --- infrastructure/cicd/tekton-helm/templates/pipeline-ci.yaml | 2 +- .../cicd/tekton-helm/templates/task-kaniko-build.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/infrastructure/cicd/tekton-helm/templates/pipeline-ci.yaml b/infrastructure/cicd/tekton-helm/templates/pipeline-ci.yaml index c2bd3338..505b6386 100644 --- a/infrastructure/cicd/tekton-helm/templates/pipeline-ci.yaml +++ b/infrastructure/cicd/tekton-helm/templates/pipeline-ci.yaml @@ -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: diff --git a/infrastructure/cicd/tekton-helm/templates/task-kaniko-build.yaml b/infrastructure/cicd/tekton-helm/templates/task-kaniko-build.yaml index 2a42974f..7dbd7370 100644 --- a/infrastructure/cicd/tekton-helm/templates/task-kaniko-build.yaml +++ b/infrastructure/cicd/tekton-helm/templates/task-kaniko-build.yaml @@ -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..."