Merge pull request 'fix(ci): actualizar credenciales SITAR en Jenkinsfile y mejorar Docker build' (#445) from feature/ci-cd into development

Reviewed-on: ADUANASOFT/anexo76#445
This commit is contained in:
2026-05-22 19:10:20 +00:00
2 changed files with 5 additions and 4 deletions

4
Jenkinsfile vendored
View File

@@ -311,9 +311,9 @@ pipeline {
usernameVariable: 'E2E_USER',
passwordVariable: 'E2E_PASS'
),
string(credentialsId: 'a76-sitar-api-url', variable: 'SITAR_API_URL'),
string(credentialsId: 'sitar-api-url', variable: 'SITAR_API_URL'),
usernamePassword(
credentialsId: 'a76-sitar-credentials',
credentialsId: 'sitar-credentials',
usernameVariable: 'SITAR_API_USER',
passwordVariable: 'SITAR_API_PASSWORD'
)

View File

@@ -151,9 +151,10 @@ docker build -t dev.aduanasoft.com/anexo76/backend:latest -f ./backend/Dockerfil
**Importación CSV y workers Celery**: La lógica de cargas por CSV está en `api/v1/modules/a76/layouts_csv/` (una carpeta por proceso). Los workers Celery deben cargar los módulos `api.v1.modules.a76.layouts_csv.<proceso>.tasks`. El directorio de trabajo del worker debe ser la raíz del backend para que `layout_path("imports", "temp")` y `layout_path("imports", "errors")` apunten a los mismos directorios que la API. Si API y worker comparten volumen, los archivos temporales y de errores se escriben en `backend/layouts/imports/temp` y `backend/layouts/imports/errors`.
```
docker build -t dev.aduanasoft.com/anexo76/backend:latest -f ./backend/Dockerfile ./backend
docker build \
--build-arg VITE_API_URL=http://10.47.80.196:3467/api/ \
--build-arg VITE_KEYCLOAK_URL=http://10.47.80.196/kcauth/ \
--build-arg VITE_API_URL=https://anexo76-dev.aduanasoft.com/api/ \
--build-arg VITE_KEYCLOAK_URL=https://anexo76-dev.aduanasoft.com/kcauth/ \
--build-arg INTERNAL_API_URL=http://backend:3467/api/ \
-t dev.aduanasoft.com/anexo76/frontend:latest \
-f ./frontend/Dockerfile.prod \