feat: 支持 arm64 与 amd64 双架构构建
构建并推送 Docker 镜像 (AMD64 & ARM64) / build-and-push (push) Canceled after 0s
构建并推送 Docker 镜像 (AMD64 & ARM64) / build-and-push (push) Canceled after 0s
- 在 Gitea Actions 中引入 QEMU 与 Docker Buildx - 设置构建目标架构为 linux/amd64,linux/arm64 - 更新 README.md 多架构拉取说明
This commit is contained in:
1 parent
fca87a1abc
commit
b11523a2d3
2 files changed
+22
-11
No files matched your search
@@ -28,6 +28,7 @@ docker pull git.openlocalpdf.com/gitea/tbox-gateway-docker:<tag>
|
||||
## 自动化构建配置
|
||||
|
||||
CI 流程已配置在 [`.gitea/workflows/docker-build.yml`](.gitea/workflows/docker-build.yml):
|
||||
- **多架构支持**:使用 Docker Buildx 与 QEMU 同时构建并输出 **`linux/amd64`** 和 **`linux/arm64`** 双版本镜像清单(Manifest List)。拉取时客户端将根据 CPU 架构自动选择对应镜像。
|
||||
- 当代码推送至 `master` 或 `main` 分支时,自动触发构建并推送 `:latest` 镜像。
|
||||
- 当推送版本标签(如 `v1.0.0`)时,自动构建并同时推送对应标签及 `:latest`。
|
||||
- 构建所需环境需在 Gitea 中开启 Actions 并注册 `act_runner`(具备 Docker daemon 权限)。
|
||||
Reference in new issue
Block a user