fix: use full cluster DNS for gitea service
Some checks failed
Build and Deploy / build (push) Has been cancelled
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user