chore: 新增 build-and-push.sh 镜像构建推送脚本并更新文档

This commit is contained in:
2026-08-04 06:17:39 +08:00
parent 40faf4a4c9
commit a267f66079
3 changed files with 87 additions and 4 deletions
+5 -2
View File
@@ -69,12 +69,15 @@ pnpm dev
## 构建与部署
本地构建:
构建并推送镜像
```bash
docker build -t swr.cn-north-4.myhuaweicloud.com/virtheart/arcticnewone:latest .
./build-and-push.sh
```
脚本从环境变量读取 SWR 凭据(`SWR_REGISTRY``SWR_NAMESPACE``SWR_USERNAME``SWR_PASSWORD`),
多架构(`linux/amd64,linux/arm64`)构建并推送到华为云 SWR。
本地启动(使用 SWR 镜像,与生产一致):
```bash