ci: mirror ubuntu:22.04 to ghcr.io by marcoieni · Pull Request #135574 · rust-lang/rust (original) (raw)
This PR mirrors the ubuntu:22.04
image from DockerHub to ghcr.io.
Tested here. In my repository, I tried pushing the ubuntu 18.10 image, which you can see it was pushed here.
Why is this needed
The PR job mingw-check-tidy always downloads the base layer from DockerHub, while the other jobs rely on the cache to download the base layer.
To avoid the risk of being rate limited by DockerHub, we want to download the base layer from ghcr.io, which doesn't have rate limits on pulls.
Agreed in zulip.
Next steps
Once this workflow runs, we can edit the mingw-check-tidy
Dockerfile to use it.
Related to rust-lang/infra-team#176
r? @Kobzol