Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/sync-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
schedule:
- cron: "23 * * * *"

concurrency:
group: sync-images-${{ github.ref }}
cancel-in-progress: false

jobs:
prepare:
name: Prepare sync matrix
Expand All @@ -26,6 +22,17 @@ jobs:
name: Sync ${{ matrix.src }}
needs: prepare
runs-on: ubuntu-latest
# 并发控制在 job 级按 src 分组:某个慢源(如 verl/vllm-ascend 同步 2h+)只会延迟
# 它自己的下一次同步,不会把整个 run 拖住、连坐其他镜像的同步节奏。
# 不要提升回 workflow 级——那会让所有 src 一起等最慢的那个。
# 组 key 故意不带 github.ref:任何 ref 写的都是同一批 dest registry,跨 ref 的同
# src 同样必须互斥,否则「同 src 不并发」在分支手动 dispatch 时会被绕过;
# 代价是在分支上手动跑同一 src 时要排队等 main 的 job 结束。
# 另外注意:默认 queue: single 下,被更新的 pending 顶掉的 job 会以 cancelled 收场
# (正常替换,非失败);若对 cancelled run 有告警,需排除这类情况以免误报。
concurrency:
group: sync-images-${{ matrix.src }}
cancel-in-progress: false
container:
image: quay.io/skopeo/stable:latest
strategy:
Expand Down
Loading