feat(ci): update Docker image to node:24-bookworm and add Docker CLI setup step

This commit is contained in:
2026-07-07 10:26:41 +08:00
parent 5030780cbe
commit ecb3f8fefe
2 changed files with 20 additions and 0 deletions
+7
View File
@@ -62,6 +62,13 @@ runs-on: gitea-label
4. 能访问配置的镜像仓库。
5. 支持 Docker BuildKit secret,即 `DOCKER_BUILDKIT=1 docker build --secret ...`
当前 Docker 镜像发布 workflow 会使用 `node:24-bookworm` 作为 job 容器,确保 `actions/checkout@v4` 执行时已经存在 Node.js。runner 仍然需要挂载宿主机 Docker socket
```yaml
volumes:
- /var/run/docker.sock:/var/run/docker.sock
```
## 验证方式
推送到 `test` 分支后,检查 Actions 日志中是否出现: