33 lines
771 B
YAML
33 lines
771 B
YAML
name: Deploy Docs to Synology
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'docs/**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
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/ui:/mnt/nas_docsui # <--- Cambiamos el nombre interno
|
|
|
|
steps:
|
|
- name: Checkout código
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
env:
|
|
GIT_CONFIG_PARAMETERS: "'url.https://git.natxocc.com/.insteadOf=http://gitea:3000/'"
|
|
|
|
- name: Copiar archivos
|
|
run: |
|
|
cp -r docs/. /mnt/nas_docsui/
|
|
ls -la /mnt/nas_docsui |