feat: package docker deployment and publish flow

This commit is contained in:
theshy
2026-04-22 16:20:03 +08:00
parent 055474360e
commit 2146687dc6
178 changed files with 24318 additions and 20855 deletions

View File

@ -59,6 +59,10 @@ bash setup.sh
- `docs/cold-start-checklist.md`
发布流程、输出文案和评论示例见:
- `docs/publish-output-examples.md`
浏览器访问:
```text
@ -192,6 +196,29 @@ cd /home/theshy/biliup/biliup-next
- 内容按 `P1/P2/P3` 分组
- 依赖 `full_video_bvid.txt` 或通过标题匹配解析到完整版 BV
评论格式和投稿文案一样,优先从 `runtime/upload_config.json` 读取。可编辑字段:
```json
"comment_template": {
"split_header": "当前视频:歌曲纯享版:只保留本场直播中的歌曲片段,歌单见下方。\n直播完整版{current_full_video_link} (完整录播,含聊天/互动/完整流程)\n上次纯享{previous_pure_video_link} (上一场歌曲纯享版)",
"full_header": "当前视频:直播完整版:保留本场完整录播内容,歌曲时间轴见下方。\n歌曲纯享版{current_pure_video_link} (只听歌曲看这里)\n上次完整版{previous_full_video_link} (上一场完整录播)",
"split_part_header": "P{part_index}:",
"full_part_header": "P{part_index}:",
"split_song_line": "{song_index}. {title}{artist_suffix}",
"split_text_song_line": "{song_index}. {song_text}",
"full_timeline_line": "{song_index}. {line_text}"
}
```
常用变量:
- 链接:`{current_full_video_link}``{current_pure_video_link}``{previous_full_video_link}``{previous_pure_video_link}`
- 分段与序号:`{part_index}``{song_index}`
- 纯享歌单:`{title}``{artist}``{artist_suffix}``{song_text}`
- 完整版时间轴:`{line_text}`
如果某一行包含空链接变量,例如 `{previous_full_video_link}` 为空,这一整行会自动跳过。
清理默认关闭:
- `cleanup.delete_source_video_after_collection_synced = false`
@ -201,11 +228,14 @@ cd /home/theshy/biliup/biliup-next
## Full Video BV Input
完整版 `BV` 目前支持 3 种来源:
完整版 `BV` 目前支持 4 种来源:
- `stage/*.meta.json` 中的 `full_video_bvid`
- 前端 / API 手工绑定
- webhook`POST /webhooks/full-video-uploaded`
- `biliup list` 标题匹配,包含 `开放浏览``审核中` 状态
只要完整版上传后已经生成 BV即使仍在审核中也可以被用于纯享版简介、动态和评论互链。
推荐 webhook 负载:
@ -320,3 +350,14 @@ curl -X POST http://127.0.0.1:8787/tasks \
- `ingest.provider = bilibili_url`
- `ingest.yt_dlp_cmd = yt-dlp`
## Docker Compose Deployment
如果希望用容器方式一键运行 API 和 worker请参考 [README_DEPLOY.md](README_DEPLOY.md)。
快速入口:
```bash
./scripts/init-docker-config.sh
docker compose up -d --build
```