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:
@@ -12,6 +12,9 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: [self-hosted, rent-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:
|
steps:
|
||||||
- name: Clone or update code
|
- name: Clone or update code
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user