Files
115reelay/compose.build.yaml
DerrorsandClaude Opus 5.5 8a4ba62a14 ci: 发布版本时自动构建并推送 Docker 镜像
- 新增「发布」工作流:推送 v* 标签后核对版本号与 CHANGELOG,复用 CI 跑完整检查,构建 amd64 / arm64 镜像推送到 ghcr.io/derrors/reelay(版本号、次版本号、latest),再按 CHANGELOG 创建 GitHub Release;手动运行只构建不推送
- compose.yaml 默认使用发布的镜像,REELAY_VERSION 固定版本,.env 可选;从源码构建改用 compose.build.yaml
- 前端构建阶段在构建机原生平台上运行,多架构构建不必在 QEMU 里跑 npm
- 部署文档补充免源码部署、升级与回滚、从源码构建;贡献指南补充发版步骤

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 22:40:04 +08:00

14 lines
491 B
YAML

# 从源码构建镜像,覆盖 compose.yaml 里发布的镜像:
# docker compose -f compose.yaml -f compose.build.yaml up -d --build
# 国内网络可先构建并指定镜像源:
# docker compose -f compose.yaml -f compose.build.yaml build \
# --build-arg NPM_REGISTRY=https://registry.npmmirror.com/ \
# --build-arg PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
services:
worker:
image: reelay:local
build: .
web:
image: reelay:local
build: .