fix: 构建推送改为单架构 amd64 + docker build/push,兼容 SWR
This commit is contained in:
+3
-1
@@ -15,7 +15,7 @@
|
||||
|
||||
## 镜像构建与推送
|
||||
|
||||
镜像由项目根目录的 `build-and-push.sh` 构建并推送到华为云 SWR(多架构 `linux/amd64,linux/arm64`,tag 统一为 `latest`):
|
||||
镜像由项目根目录的 `build-and-push.sh` 构建并推送到华为云 SWR(单架构 `linux/amd64`,tag 统一为 `latest`):
|
||||
|
||||
```bash
|
||||
# 1. 设置环境变量(凭据绝不写入仓库)
|
||||
@@ -30,6 +30,8 @@ export SWR_PASSWORD="<密码>"
|
||||
|
||||
推送完成后镜像地址:`swr.cn-north-4.myhuaweicloud.com/virtheart/arcticnewone:latest`。
|
||||
|
||||
说明:SWR 不支持 buildx 多架构推送的 OCI manifest 格式,脚本改为 `docker build` + `docker push` 分步执行,并禁用 provenance(`--provenance=false`),保证镜像可被 SWR 正常解析。
|
||||
|
||||
## 部署前置条件
|
||||
|
||||
1. 镜像已构建并推送到华为云 SWR(通过项目根目录 `./build-and-push.sh` 执行,见上方「镜像构建与推送」)
|
||||
|
||||
Reference in New Issue
Block a user