Actualizar .github/workflows/publish.yml
This commit is contained in:
17
.github/workflows/publish.yml
vendored
17
.github/workflows/publish.yml
vendored
@@ -9,16 +9,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: node:20-bullseye
|
image: node:20-bullseye
|
||||||
options: >-
|
# IMPORTANTE: Conectar a la red interna
|
||||||
--dns 192.168.1.1
|
options: --network gitea_net
|
||||||
--add-host gitea:192.168.1.100
|
|
||||||
--add-host git.natxocc.com:192.168.1.100
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configurar Entorno
|
- name: Configurar Túnel Interno
|
||||||
run: |
|
run: |
|
||||||
# Esto obliga a Git a redirigir CUALQUIER URL que use el puerto 3000 al puerto 3333
|
# REDIRECCIÓN MAESTRA:
|
||||||
# Por si Gitea le envía la URL interna al runner
|
# Cualquier intento de ir a la IP externa puerto 3333
|
||||||
git config --global url."http://192.168.1.100:3333/".insteadOf "http://gitea:3000/"
|
# se redirige al nombre interno 'gitea' puerto 3000
|
||||||
|
git config --global url."http://gitea:3000/".insteadOf "http://192.168.1.100:3333/"
|
||||||
|
|
||||||
|
# Configuraciones de seguridad necesarias
|
||||||
git config --global --add safe.directory /workspace/natxocc/sigpro
|
git config --global --add safe.directory /workspace/natxocc/sigpro
|
||||||
git config --global http.sslVerify false
|
git config --global http.sslVerify false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user