diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 00383fc..a663ae0 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -35,8 +35,15 @@ jobs: - -c - | set -e + echo "Cloning repository..." + rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true git clone --depth 1 http://gitea:3000/unchained/manoon-headless.git /workspace - cd /workspace && echo "Building: $(git rev-parse --short HEAD)" + if [ ! -d /workspace/.git ]; then + echo "ERROR: Clone failed - .git directory not found" + exit 1 + fi + cd /workspace + echo "Successfully cloned: $(git rev-parse --short HEAD)" volumeMounts: - name: workspace mountPath: /workspace