GitHub Actions 中 Docker 容器运行测试的 4 种缓存优化策略
1. Docker 测试在 GitHub Actions 中卡在“拉镜像 3 分钟,跑测试 20 秒”这个现实
我接手一个遗留的 Python 微服务项目时,CI 流水线里最刺眼的一行日志是:
Run docker pull ghcr.io/org/service-test:latest
...
Status: Downloaded newer image for ghcr.io/org/service…
2026/7/2 7:08:53