添加GitHub Actions自动构建Docker镜像工作流

- 创建了自动构建和推送Docker镜像的GitHub Actions工作流
- 支持多架构构建 (linux/amd64, linux/arm64)
- 自动推送到Docker Hub和阿里云容器镜像服务
- 更新Dockerfile以优化构建过程
- 更新README.md包含Docker镜像信息
This commit is contained in:
2025-12-02 17:50:00 +08:00
parent 4f2042cbb4
commit 9a5b82b628
3 changed files with 81 additions and 7 deletions

View File

@@ -28,6 +28,15 @@ docker run -d --name=dell-fans-controller-docker -e HOST=10.10.11.11 -e USERNAM
脚本首先通过ipmitool来获取 **进出口温度和CPU核心温度**,再通过其中的最大值来判断调整服务器的风扇转速
### Docker 镜像构建
本项目通过 GitHub Actions 自动构建 Docker 镜像,并推送到 Docker Hub 和阿里云容器镜像服务。
- Docker Hub: `joestar817/dell-fans-controller-docker:latest`
- 阿里云: `registry.cn-huhehaote.aliyuncs.com/lkddi_image/dell-fans-controller-docker:latest`
镜像支持多架构 (linux/amd64, linux/arm64)
运行间隔为每60秒运行一次
| 温度(℃) | 风扇转速(%) |