diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a663ae0..984928d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -34,10 +34,16 @@ jobs: - sh - -c - | - set -e + set -ex echo "Cloning repository..." rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true - git clone --depth 1 http://gitea:3000/unchained/manoon-headless.git /workspace + CLONE_OUTPUT=$(git clone --depth 1 http://gitea.gitea.svc.cluster.local:3000/unchained/manoon-headless.git /workspace 2>&1) + CLONE_EXIT_CODE=$? + echo "$CLONE_OUTPUT" + if [ $CLONE_EXIT_CODE -ne 0 ]; then + echo "ERROR: Clone failed with exit code $CLONE_EXIT_CODE" + exit 1 + fi if [ ! -d /workspace/.git ]; then echo "ERROR: Clone failed - .git directory not found" exit 1