Fix resources isues 22

This commit is contained in:
2026-01-22 21:04:26 +01:00
parent ea48f52173
commit 6fdfff6488
4 changed files with 53 additions and 30 deletions

View File

@@ -53,7 +53,7 @@ spec:
- name: DOCKER_CONFIG
value: /tekton/home/.docker
script: |
#!/bin/bash
#!/busybox/sh
set -e
echo "==================================================================="
@@ -65,13 +65,13 @@ spec:
echo "Git Revision: $(params.git-revision)"
echo "==================================================================="
# Split services parameter by comma
IFS=',' read -ra SERVICES <<< "$(params.services)"
# Split services parameter by comma using POSIX-compatible method
SERVICES="$(params.services)"
# Build each service
for service in "${SERVICES[@]}"; do
service=$(echo "$service" | xargs) # Trim whitespace
if [ -n "$service" ] && [ "$service" != "none" ]; then
# Build each service - iterate using tr to convert commas to newlines
echo "$SERVICES" | tr ',' '\n' | while read service; do
service=$(echo "$service" | tr -d ' ') # Trim whitespace
if [ -n "$service" ] && [ "$service" != "none" ] && [ "$service" != "infrastructure" ] && [ "$service" != "shared" ]; then
echo ""
echo "Building service: $service"
echo "-------------------------------------------------------------------"

View File

@@ -35,9 +35,9 @@ spec:
type: RuntimeDefault
workingDir: $(workspaces.source.path)
script: |
#!/bin/bash
#!/bin/sh
set -e
echo "============================================"
echo "Running Unit Tests"
echo "Services: $(params.services)"
@@ -78,9 +78,9 @@ spec:
type: RuntimeDefault
workingDir: $(workspaces.source.path)
script: |
#!/bin/bash
#!/bin/sh
set -e
echo "============================================"
echo "Running Integration Tests"
echo "Services: $(params.services)"