fix: 使用本地专用镜像 gitea-runner-php
Test CI / 快速测试 (push) Successful in 12s

- 创建 Dockerfile 包含 PHP + Node.js + Git + SSH
- 所有 workflow 使用本地镜像避免拉取延迟
- 需要先构建镜像: docker build -t gitea-runner-php:latest .
This commit is contained in:
2026-03-01 01:05:31 +08:00
parent 9427294682
commit 9d32b4ac97
4 changed files with 55 additions and 14 deletions
+4 -4
View File
@@ -12,11 +12,10 @@ jobs:
name: 代码检查
runs-on: linux
container:
image: composer:latest
image: gitea-runner-php:latest
steps:
- name: 检出代码
run: |
apk add --no-cache git
git clone -b ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }}.git .
git checkout ${{ github.sha }}
@@ -47,12 +46,11 @@ jobs:
name: 单元测试
runs-on: linux
container:
image: composer:latest
image: gitea-runner-php:latest
needs: lint
steps:
- name: 检出代码
run: |
apk add --no-cache git
git clone -b ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }}.git .
git checkout ${{ github.sha }}
@@ -71,6 +69,8 @@ jobs:
ci-status:
name: CI 状态
runs-on: linux
container:
image: gitea-runner-php:latest
needs: [lint, test]
if: always()
steps: