Retry 1313
Some checks failed
Build and Deploy / remote-build-and-deploy (push) Failing after 14m12s
Some checks failed
Build and Deploy / remote-build-and-deploy (push) Failing after 14m12s
This commit is contained in:
@@ -42,10 +42,13 @@ jobs:
|
||||
|
||||
REPO_NAME=$(echo "$REPO_NAME_RAW" | tr '[:upper:]' '[:lower:]')
|
||||
TEMP_DIR="/tmp/gitea-build/$RUN_ID"
|
||||
|
||||
# ¡¡LA CORRECCIÓN ESTÁ AQUÍ!! Usamos la ruta real del volumen.
|
||||
GITEA_REPO_PATH="/var/lib/docker/volumes/gitea-stack_gitea-data/_data/git/repositories/${REPO_NAME}.git"
|
||||
|
||||
# --- ¡¡LA CORRECCIÓN ESTÁ AQUÍ!! ---
|
||||
# Añadimos el repositorio a la lista de directorios seguros para el usuario actual (root).
|
||||
echo "Adding git repository to safe directories..."
|
||||
git config --global --add safe.directory "$GITEA_REPO_PATH"
|
||||
|
||||
echo "Cloning repository from local path: $GITEA_REPO_PATH"
|
||||
rm -rf $TEMP_DIR
|
||||
git clone $GITEA_REPO_PATH $TEMP_DIR
|
||||
|
||||
Reference in New Issue
Block a user