fix: stabilize web build path e cores do SLA

This commit is contained in:
Esdras Renan 2025-11-25 17:32:40 -03:00
parent 99b4d50589
commit 8f2c00a75a
3 changed files with 10 additions and 6 deletions

View file

@ -231,9 +231,13 @@ jobs:
PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING: "1"
run: |
cd "$EFFECTIVE_APP_DIR"
bun install --frozen-lockfile --filter '!appsdesktop'
bun run prisma:generate
bun run build:bun
docker run --rm \
-e PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING="$PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING" \
-e NODE_OPTIONS="--max-old-space-size=4096" \
-v "$EFFECTIVE_APP_DIR":/app \
-w /app \
sistema_web:node22-bun \
bash -lc "set -euo pipefail; bun install --frozen-lockfile --filter '!appsdesktop'; bun run prisma:generate; bun run build:bun"
- name: Publish build to stable APP_DIR directory
run: |

View file

@ -19,10 +19,10 @@ function resolveSlaTone(percent: number) {
return { indicatorClass: "bg-[#00e8ff]", textClass: "text-[#00e8ff]" }
}
if (percent < 50) {
return { indicatorClass: "bg-emerald-400", textClass: "text-emerald-500" }
return { indicatorClass: "bg-emerald-400", textClass: "text-emerald-400" }
}
if (percent < 75) {
return { indicatorClass: "bg-amber-400", textClass: "text-amber-500" }
return { indicatorClass: "bg-amber-400", textClass: "text-amber-400" }
}
return { indicatorClass: "bg-rose-500", textClass: "text-rose-500" }
}

View file

@ -34,7 +34,7 @@ services:
# Evita apt-get na inicialização porque a imagem já vem com toolchain pronta
SKIP_APT_BOOTSTRAP: "true"
# Sempre revalida/rebuild better-sqlite3 para a runtime atual
SKIP_SQLITE_REBUILD: "false"
SKIP_SQLITE_REBUILD: "true"
# Usado para forçar novo rollout a cada deploy (setado pelo CI)
RELEASE_SHA: "${RELEASE_SHA:-dev}"
deploy: