From 5d3ab87940590c7111dd7e9db6d85a94c51678dc Mon Sep 17 00:00:00 2001 From: natxocc Date: Wed, 15 Apr 2026 13:05:18 +0200 Subject: [PATCH] Actualizar .github/workflows/deploy-docs.yaml --- .github/workflows/deploy-docs.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index 5d8b2fd..ef20f37 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/deploy-docs.yaml @@ -12,7 +12,7 @@ jobs: deploy: runs-on: ubuntu-latest container: - image: node:20-bullseye # <--- Esta imagen ya tiene Node, así que checkout funcionará + image: node:20-bullseye options: >- --dns 192.168.1.1 --add-host git.natxocc.com:host-gateway @@ -21,20 +21,21 @@ jobs: steps: - name: Instalar rsync - run: | - apt-get update && apt-get install -y rsync - - - name: Forzar Dominio Limpio - run: | - git config --global url."http://git.natxocc.com/".insteadOf "http://gitea:3000/" - git config --global --add safe.directory /workspace/natxocc/sigpro + run: apt-get update && apt-get install -y rsync - name: Checkout código uses: actions/checkout@v4 with: fetch-depth: 1 + env: + # Usamos exactamente la misma cadena que te funcionó en NPM + GIT_CONFIG_PARAMETERS: "'url.https://git.natxocc.com/.insteadOf=http://gitea:3000/'" - name: Sincronizar archivos a Web Station run: | - # Sincronizamos el contenido de docs/ al volumen mapeado en Synology - rsync -av --delete docs/ /target_folder/ \ No newline at end of file + # Verificamos contenido + ls -R docs/ + # Sincronizamos a la carpeta del NAS mapeada + rsync -av --delete docs/ /target_folder/ + # Permisos para asegurar que Web Station pueda leer + chmod -R 755 /target_folder \ No newline at end of file