Add an image tarball output that later jobs can load and test
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- docker, github-actions
- Área
- ci-cd
Línea de trabajo
Start with bake.yml and build.yml, which currently accept only image or local for output, and trace how output: local combines with artifact-upload to produce and upload a filesystem export. Follow the same path for the docker exporter, ensuring each matrix runner uploads its own platform tarball as an artifact. Done means a caller can set output: docker and artifact-upload: true, download the matching artifact, and run docker load --input image.tar in a later job.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I use bake.yml to build 36 images in https://github.com/home-operations/containers. On each pull request, I want to run integration tests against the built image. The tests start the image as a container on an amd64 runner and on an arm64 runner.
bake.yml and build.yml accept only image or local for output. The build runs in jobs inside the reusable workflow. The image is not in the Docker image store of any caller job, so a test job can only pull it from a registry.
To test a pull request today, I must push the image to a scratch repository and test it by digest. A scratch repository is a registry repository that only holds test images. This has three costs:
- Pull request runs need
packages: writeand registry credentials. - The scratch repository grows, and I must delete old versions myself.
- Pull requests from forks cannot push, so they cannot run the tests.
I want an output that exports the image with the docker exporter and uploads the tarball as a GitHub artifact. When distribute is true, each runner builds one platform, so each runner can upload one tarball. output: local with artifact-upload already does this for a filesystem export.
A test job on the matching runner can then download the artifact, run docker load, and test the image. The test job does not need a registry or push credentials.
The example below shows the idea. output: docker and the artifact name are not real values.
jobs:
build:
uses: docker/github-builder/.github/workflows/bake.yml@v1
with:
output: docker
artifact-upload: true
test:
needs: build
strategy:
matrix:
arch: [amd64, arm64]
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-26.04-arm' || 'ubuntu-26.04' }}
steps:
- uses: actions/checkout@v7
- uses: actions/download-artifact@v8
with:
name: docker-github-builder-assets-linux-${{ matrix.arch }}
- run: docker load --input image.tar
- run: make test
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 94
- Forks
- 28
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 20
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de docker/github-builder
-
kind/enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
docker/github-builder#356 ·
Los mantenedores suelen responder en 1 día
-
Generate `dockerbuild` FilesAbiertokind/enhancement status/triage
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
docker/github-builder#347 ·
Los mantenedores suelen responder en 1 día
-
kind/enhancement status/triage
Dificultad 3/5 1-2 días Aptitud para principiantes 57/100
docker/github-builder#343 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
status/needs-investigation
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
docker/github-builder#328 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
kind/enhancement status/triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
docker/github-builder#203 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de docker/github-builder
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Netcracker/qubership-authz-agent#416 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Netcracker/qubership-core-base-images#400 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
developmentseed/titiler-covjson#163 ·
Los mantenedores suelen responder en 1 día
-
`LogProxyConsumer._on_relation_departed` raises `APIError` when the promtail service does not existAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
canonical/loki-k8s-operator#695 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
salesforce/sa11y#1022 ·