Actualizar .github/workflows/publish.yml
This commit is contained in:
20
.github/workflows/publish.yml
vendored
20
.github/workflows/publish.yml
vendored
@@ -9,17 +9,21 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: node:20-bullseye
|
image: node:20-bullseye
|
||||||
# Esto lo mete en el mismo "pasillo" que Gitea
|
options: >-
|
||||||
options: --network gitea_net
|
--dns 192.168.1.1
|
||||||
|
--add-host git.natxocc.com:host-gateway
|
||||||
|
--add-host gitea:host-gateway
|
||||||
steps:
|
steps:
|
||||||
- name: Configurar Git Interno
|
- name: Forzar Dominio Limpio
|
||||||
run: |
|
run: |
|
||||||
# Forzamos que confíe en el directorio
|
# Redirigimos cualquier intento (IP o nombre interno) al dominio limpio
|
||||||
|
git config --global url."http://git.natxocc.com/".insteadOf "http://gitea:3000/"
|
||||||
|
git config --global url."http://git.natxocc.com/".insteadOf "http://192.168.1.100:3333/"
|
||||||
|
|
||||||
git config --global --add safe.directory /workspace/natxocc/sigpro
|
git config --global --add safe.directory /workspace/natxocc/sigpro
|
||||||
# Por si acaso Gitea envía la IP en lugar del nombre, lo redirigimos al nombre interno
|
git config --global http.sslVerify false
|
||||||
git config --global url."http://gitea:3000/".insteadOf "http://192.168.1.100:3333/"
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout código
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
@@ -28,7 +32,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
bun-version: latest
|
bun-version: latest
|
||||||
|
|
||||||
- name: Publicar
|
- name: Install & Publish
|
||||||
run: |
|
run: |
|
||||||
bun install
|
bun install
|
||||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
||||||
|
|||||||
Reference in New Issue
Block a user