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