fix: 使用包含 Docker 的容器镜像运行 CI/CD

## 修改内容
- 添加 container 配置
- 使用 catthehacker/ubuntu:act-latest 镜像
- 该镜像预装了 docker、docker-compose 等工具

## 优点
- 不需要在 Runner 容器中安装工具
- 使用标准的 GitHub Actions 兼容镜像
- 更稳定可靠

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 19:02:57 +08:00
parent c243300670
commit 147a25614f
+3
View File
@@ -12,6 +12,9 @@ env:
jobs:
deploy:
runs-on: [self-hosted, rent-deploy]
container:
image: catthehacker/ubuntu:act-latest
options: --privileged -v /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Clone or update code
run: |