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

Offen
#328 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
docker, github-actions
Bereich
ci-cd, devops

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Keine Sprachdaten
Sterne
94
Forks
28
Ø Merge
2 T. 7 Std.
Gemergte PRs (30 T.)
20

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus docker/github-builder

Alle Issues in docker/github-builder

Ähnliche Issues

Weitere Issues zu DevOps

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.