Actualizar .github/workflows/deploy-docs.yaml
This commit is contained in:
13
.github/workflows/deploy-docs.yaml
vendored
13
.github/workflows/deploy-docs.yaml
vendored
@@ -12,17 +12,17 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
# Usamos una imagen ligera que tenga rsync
|
image: node:20-bullseye # <--- Esta imagen ya tiene Node, así que checkout funcionará
|
||||||
image: alpine:latest
|
|
||||||
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
|
||||||
--add-host gitea:host-gateway
|
--add-host gitea:host-gateway
|
||||||
-v /volume1/web/sigpro:/target_folder # <--- MAPEO CRÍTICO
|
-v /volume1/web/sigpro:/target_folder
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Instalar dependencias
|
- name: Instalar rsync
|
||||||
run: apk add --no-cache git rsync
|
run: |
|
||||||
|
apt-get update && apt-get install -y rsync
|
||||||
|
|
||||||
- name: Forzar Dominio Limpio
|
- name: Forzar Dominio Limpio
|
||||||
run: |
|
run: |
|
||||||
@@ -36,6 +36,5 @@ jobs:
|
|||||||
|
|
||||||
- name: Sincronizar archivos a Web Station
|
- name: Sincronizar archivos a Web Station
|
||||||
run: |
|
run: |
|
||||||
# Sincronizamos el contenido de docs/ al volumen mapeado
|
# Sincronizamos el contenido de docs/ al volumen mapeado en Synology
|
||||||
# -a: archivos, -v: verbose, --delete: limpia archivos borrados
|
|
||||||
rsync -av --delete docs/ /target_folder/
|
rsync -av --delete docs/ /target_folder/
|
||||||
Reference in New Issue
Block a user