ci: mirror buildkit image to ghcr #135624
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks to #135574 we successfully mirrored the
ubuntu:22.04
image in ghcr to allowmingw-check-tidy
working without Docker caching.However, I found out that all CI jobs pull an additional image from the dockerhub, i.e.
moby/buildkit:buildx-stable-1
.You can see this from the logs of the
mingw-check-tidy
job:I saw jobs failing in #133912 because they failed to pull this image for the dockerhub rate limit.
So this PR mirrors this additional image in ghcr 👍
To use it, we need to add the flag
--driver-opt image=ghcr.io/marcoieni/buildkit:buildx-stable-1
todocker buildx create --use --driver docker-container
(I tested this in #133912).If you think this bash script is becoming too complex, I can rewrite the script in python as I did in #135530
r? @Kobzol