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

Abierto
#328 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, github-actions
Área
ci-cd, devops

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Sin datos de lenguaje
Estrellas
94
Forks
28
Merge medio
2 d 7 h
PR fusionados (30 d)
20

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de docker/github-builder

Todos los issues de docker/github-builder

Issues similares

Más issues de DevOps

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.