Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: mirror ubuntu:22.04 to ghcr.io #135574

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

marcoieni
Copy link
Member

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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 16, 2025
Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Left a few comments. I think that this is simple enough to keep in the YAML file for now.

.github/workflows/ghcr.yml Show resolved Hide resolved
.github/workflows/ghcr.yml Show resolved Hide resolved
.github/workflows/ghcr.yml Outdated Show resolved Hide resolved
@Kobzol
Copy link
Contributor

Kobzol commented Jan 16, 2025

Looks good, thanks! I guess as usually with privileged GH actions, the only way to try it is to merge and see what happens :)

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 16, 2025

📌 Commit f5fe0a0 has been approved by Kobzol

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 16, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 16, 2025
…iaskrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#134754 (Implement `use` associated items of traits)
 - rust-lang#135481 (coverage: Completely overhaul counter assignment, using node-flow graphs)
 - rust-lang#135504 (Allow coercing safe-to-call target_feature functions to safe fn pointers)
 - rust-lang#135561 (Update docs for `-Clink-dead-code` to discourage its use)
 - rust-lang#135574 (ci: mirror ubuntu:22.04 to ghcr.io)
 - rust-lang#135585 (resolve symlinks of LLVM tool binaries before copying them)
 - rust-lang#135588 (Add license-metadata.json to rustc-src tarball.)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 701f192 into rust-lang:master Jan 17, 2025
6 checks passed
@rustbot rustbot added this to the 1.86.0 milestone Jan 17, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jan 17, 2025
Rollup merge of rust-lang#135574 - marcoieni:docker-ghcr-mirror, r=Kobzol

ci: mirror ubuntu:22.04 to ghcr.io
@marcoieni
Copy link
Member Author

I manually ran this, but it didn't work.
I wrote more details in rust-lang/infra-team#176 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants