Actualizar .github/workflows/deploy-docs.yaml

This commit is contained in:
2026-04-15 14:07:15 +02:00
parent dc0dd14fd5
commit c654c6ff1a

View File

@@ -11,17 +11,32 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# VOLVEMOS al contenedor porque es el que sabe resolver la red
container:
image: node:20-bullseye
options: >-
--dns 192.168.1.1
--add-host git.natxocc.com:host-gateway
--add-host gitea:host-gateway
-v /volume1/webdocs/sigpro:/target_folder
steps: steps:
- name: Checkout código - name: Checkout código
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 1 fetch-depth: 1
env: env:
# Configuración de red que ya sabemos que funciona # Mantenemos tu configuración original que SÍ llegaba a conectar
GIT_CONFIG_PARAMETERS: "'url.http://192.168.1.100:3333/.insteadOf=https://git.natxocc.com/'" GIT_CONFIG_PARAMETERS: "'url.https://git.natxocc.com/.insteadOf=http://gitea:3000/'"
- name: Copiar archivos a Web Station - name: Copiar archivos
run: | run: |
cp -r docs/. /volume1/webdocs/sigpro/ # Usamos el mapeo que definimos en 'options' (-v ...:/target_folder)
ls -la /volume1/webdocs/sigpro/ # Esto evita que Node tenga que adivinar rutas del NAS
chmod -R 755 /volume1/webdocs/sigpro/ cp -r docs/. /target_folder/
echo "Verificando archivos en el destino:"
ls -la /target_folder
# Ajustamos permisos
chmod -R 755 /target_folder