fix: 构建推送改为单架构 amd64 + docker build/push,兼容 SWR

This commit is contained in:
2026-08-04 06:32:27 +08:00
parent a930b5e4b7
commit 684e2fb42c
3 changed files with 16 additions and 30 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ pnpm dev
```
脚本从环境变量读取 SWR 凭据(`SWR_REGISTRY``SWR_NAMESPACE``SWR_USERNAME``SWR_PASSWORD`),
架构(`linux/amd64,linux/arm64`)构建并推送到华为云 SWR。
架构(`linux/amd64`)构建并推送到华为云 SWRSWR 不支持 buildx 多架构 OCI manifest,脚本使用 `docker build` + `docker push` 分步执行)
Dockerfile 基础镜像使用国内可访问的 DaoCloud 镜像源(`docker.m.daocloud.io/library/node:22-alpine`,Docker Hub 在国内不可达)。