chore: 新增 build-and-push.sh 镜像构建推送脚本并更新文档
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user