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