Commit Graph

9 Commits

Author SHA1 Message Date
shaw
aa5846b282 fix(docker): resolve /app/data permission denied on volume mounts
Docker named volumes and host bind-mounts may be owned by root,
causing "open data/model_pricing.sha256: permission denied" when
the container runs as the non-root sub2api user.

Add an entrypoint script that fixes /app/data ownership before
dropping to sub2api via su-exec. Replace USER directive with the
entrypoint approach across all three Dockerfiles and update both
GoReleaser configs to include the script in Docker build contexts.
2026-03-16 19:52:14 +08:00
song
fb9930004c ci: DockerHub 配置可选,未配置时自动跳过 2026-01-04 15:59:21 +08:00
shaw
3fd9bd4a80 fix(ci): 使用预处理的小写 owner 替代 lower 函数
GoReleaser 不支持 lower 模板函数,改为:
- 在 GitHub Actions 中预处理小写 owner
- 传递 GITHUB_REPO_OWNER_LOWER 环境变量给 GoReleaser
2025-12-31 17:25:43 +08:00
shaw
9aeef15d1b fix(ci): GHCR 镜像名转为小写 2025-12-31 17:12:09 +08:00
shaw
db876ba75f feat(ci): 添加 GitHub Container Registry (GHCR) 支持 2025-12-31 14:21:40 +08:00
刀刀
9d30ceae8d CC 400 返回具体错误信息 && 非 CC 请求时增加 system prompt (#26)
* feat: http 400 返回具体错误

* 更新 workflows

* 优化打包/docker 构建流程

* 400 是返回 原始错误 - json 格式

* feat: 非 cc请求时补充 system

* go mod tidy
2025-12-25 14:47:19 +08:00
shaw
e6add93ae3 fix(build): add -tags embed to ensure frontend is embedded
- Add -tags=embed flag to GoReleaser builds
- Add -tags embed flag to Dockerfile builds
- Fix Dockerfile COPY order to prevent frontend dist being overwritten
- Update README build instructions with embed tag explanation
2025-12-20 19:13:26 +08:00
shaw
882c2e1eef fix: use environment variable to pass full tag message to GoReleaser
- Extract complete tag message body in workflow using git format
- Pass tag message via TAG_MESSAGE environment variable
- Update goreleaser config to use .Env.TAG_MESSAGE instead of .TagBody
- Fix release notes being truncated to first paragraph only
2025-12-18 15:30:35 +08:00
shaw
642842c29e First commit 2025-12-18 13:50:39 +08:00