fix: use full cluster DNS for gitea service
Some checks failed
Build and Deploy / build (push) Has been cancelled

- Change gitea URL from http://gitea:3000 to http://gitea.gitea.svc.cluster.local:3000
- Add set -x for debugging
- Add explicit clone exit code checking
This commit is contained in:
Unchained
2026-04-05 11:43:57 +02:00
parent cdbcd8424b
commit 6563f0c966

View File

@@ -34,10 +34,16 @@ jobs:
- sh - sh
- -c - -c
- | - |
set -e set -ex
echo "Cloning repository..." echo "Cloning repository..."
rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true 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 if [ ! -d /workspace/.git ]; then
echo "ERROR: Clone failed - .git directory not found" echo "ERROR: Clone failed - .git directory not found"
exit 1 exit 1