Put cache mounts into GitHub Actions cache and reuse it between builds

Đang mở
#328 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, github-actions
Lĩnh vực
ci-cd, devops

Hướng nghiên cứu

Start by reading docker/github-builder/.github/workflows/build.yml and the linked BuildKit cache mount documentation and cache dance action. Work out how the reusable workflow can extract and inject cache mount data during builds, then check the workflow’s existing build and cache behavior. Done means cache mounts are saved to and restored from GitHub Actions cache across builds.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

status/needs-investigation
Description

According to the Docker’s official documentation:

BuildKit doesn't preserve cache mounts in the GitHub Actions cache by default. To put your cache mounts into GitHub Actions cache and reuse it between builds, you can use a workaround provided by reproducible-containers/buildkit-cache-dance.

This GitHub Action creates temporary containers to extract and inject cache mount data during Docker build steps.

However, once we use docker/github-builder/.github/workflows/build.yml, we can no longer use reproducible-containers/buildkit-cache-dance as a workaround, because we no longer have control over the runner that actually executes the build.

I would like to propose integrating reproducible-containers/buildkit-cache-dance into docker/github-builder/.github/workflows/build.yml so that we can put cache mounts into the GitHub Actions cache and reuse them between builds.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
94
Fork
28
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
20

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của docker/github-builder

Tất cả issue của docker/github-builder

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.