DragonOS
DragonOS copied to clipboard
bug(ci): Problem with using rsproxy and Mainland specific settings in GitHub Workflow
https://github.com/DragonOS-Community/DragonOS/blob/e769493840bc56aca08f6b985e3c6810d740a8c0/.github/workflows/makefile.yml#L86-L87
我们的CI Pipeline是直接跑在 GitHub 上的吧,这里为什么还要使用 rsproxy 呢?
如果是为了本地也能复现 CI 环境,可以通过 runner.name != 'GitHub Actions' 来决定是否 pass rsproxy 环境变量进入容器说是
以及我之前在 oscomp 下会在 CI 里加一行
find . -type f \( -name "*.toml" -o -name "Makefile" \) -exec sed -i 's/git\.mirrors\.dragonos\.org\.cn/github\.com/g' {} +
来让 workflow 环境直接 fetch GitHub 仓库