Skip to content

Commit

Permalink
ci: use ghcr buildkit image
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoieni committed Jan 21, 2025
1 parent ebbe638 commit 5e69b0e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ci/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
elif [[ "$PR_CI_JOB" == "1" ]];
then
# Enable a new Docker driver so that --cache-from works with a registry backend
docker buildx create --use --driver docker-container
# Use a custom image to avoid DockerHub rate limits
docker buildx create --use --driver docker-container \
--driver-opt image=ghcr.io/rust-lang/buildkit:buildx-stable-1

# Build the image using registry caching backend
retry docker \
Expand All @@ -156,7 +158,9 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
--password-stdin

# Enable a new Docker driver so that --cache-from/to works with a registry backend
docker buildx create --use --driver docker-container
# Use a custom image to avoid DockerHub rate limits
docker buildx create --use --driver docker-container \
--driver-opt image=ghcr.io/rust-lang/buildkit:buildx-stable-1

# Build the image using registry caching backend
retry docker \
Expand Down

0 comments on commit 5e69b0e

Please sign in to comment.