diff --git a/.github/workflows/sync-docker-image.yml b/.github/workflows/sync-docker-image.yml index e74f12d..9fed076 100644 --- a/.github/workflows/sync-docker-image.yml +++ b/.github/workflows/sync-docker-image.yml @@ -5,17 +5,18 @@ on: types: [ opened,edited ] workflow_dispatch: -concurrency: - group: sync-docker-image - cancel-in-progress: false - max-parallel: 6 # 设置并发限制为最多 6 个 - jobs: # 同步镜像文件 sync-docker-image: runs-on: ubuntu-latest # 设置超时时间为 360 分钟(6 小时) timeout-minutes: 360 + concurrency: + group: sync-docker-image + cancel-in-progress: false + strategy: + matrix: + job: [ 1, 2, 3, 4, 5, 6 ] # 定义6个并行任务 steps: # 拉取源代码 - name: Checkout repository