Fix resources isues 12

This commit is contained in:
2026-01-22 17:41:20 +01:00
parent 179d11968e
commit 4699bcbb7a
3 changed files with 9 additions and 0 deletions

View File

@@ -32,6 +32,9 @@ spec:
#!/bin/bash
set -e
# Mark workspace as safe directory to avoid ownership issues
git config --global --add safe.directory "$(workspaces.source.path)"
cd $(workspaces.source.path)
# Get the list of changed files

View File

@@ -59,6 +59,9 @@ spec:
echo "Depth: $DEPTH"
echo "============================================"
# Mark workspace as safe directory to avoid ownership issues
git config --global --add safe.directory "$OUTPUT_PATH"
# Clone with depth for faster checkout
if [ "$DEPTH" = "0" ]; then
echo "Cloning full repository..."

View File

@@ -72,6 +72,9 @@ spec:
# Configure git
git config --global user.email "ci@bakery-ia.local"
git config --global user.name "bakery-ia-ci"
# Mark directories as safe to avoid ownership issues
git config --global --add safe.directory /tmp/gitops
git config --global --add safe.directory "$(workspaces.source.path)"
# Clone the main repository (not a separate gitops repo)
# Use internal cluster DNS which works in all environments