28 lines
662 B
YAML
28 lines
662 B
YAML
name: Deploy Docs to Synology
|
|
|
|
on:
|
|
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:/mnt/nas_docs
|
|
|
|
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_docs/
|
|
ls -la /mnt/nas_docs |