Skip to content

feat: support podman/buildah image cache to reach feature parity on Gitlab with Github #410

@rriemann

Description

@rriemann

Hi,

following the discussion on Discord, I propose to add to blue-build options to use image caching also on other platforms than Github.

One way to do this would be to expose existing caching features of podman/buildah:

Buildah got recently the options --layers --cache-from … --cache-to ... .

Reference: https://manpages.ubuntu.com/manpages/plucky/man1/buildah-build.1.html

So with Gitlab CI one can use caching like this:

podman build -t container-name:$VERSION --layers --cache-to $CI_REGISTRY_IMAGE/cache-image --cache-from $CI_REGISTRY_IMAGE/cache-image -f Containerfile .

The cache-image could possibly made configurable from blue-build.

Metadata

Metadata

Assignees

Labels

type: featureBrand new functionality, features, pages, workflows, endpoints, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions