Actualizar .github/workflows/deploy-docs.yaml
This commit is contained in:
21
.github/workflows/deploy-docs.yaml
vendored
21
.github/workflows/deploy-docs.yaml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: node:20-bullseye # <--- Esta imagen ya tiene Node, así que checkout funcionará
|
image: node:20-bullseye
|
||||||
options: >-
|
options: >-
|
||||||
--dns 192.168.1.1
|
--dns 192.168.1.1
|
||||||
--add-host git.natxocc.com:host-gateway
|
--add-host git.natxocc.com:host-gateway
|
||||||
@@ -21,20 +21,21 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Instalar rsync
|
- name: Instalar rsync
|
||||||
run: |
|
run: apt-get update && apt-get install -y rsync
|
||||||
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
|
|
||||||
|
|
||||||
- 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:
|
||||||
|
# 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
|
- name: Sincronizar archivos a Web Station
|
||||||
run: |
|
run: |
|
||||||
# Sincronizamos el contenido de docs/ al volumen mapeado en Synology
|
# Verificamos contenido
|
||||||
rsync -av --delete docs/ /target_folder/
|
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
|
||||||
Reference in New Issue
Block a user