Skip to content

Conversation

@Baenimyr
Copy link

@Baenimyr Baenimyr commented Apr 29, 2025

Add support for buildah to create and publish images.

The buildah build command with the --manifest option is used to build an image.
The buildah manifest push command sends the images to a remote registry and retrieve the digest (use a random tag like docker).

Options example in sources:

buildah:
  pull: true
  target: "app"
  platforms:
    - linux/amd64
    - linux/arm64
  buildArgs:
    VERSION: latest
  rawOptions:
    - --layers
    - --jobs=0
    - --quiet

The user can use rawOptions to add arguments like --layers, --jobs=0 or --cache-from. None of them is activated by default.

  • build
  • push to destinations
  • get digest and let kbld create more tags
  • create tests

Benjamin Le Rohellec added 5 commits April 26, 2025 19:09
Build for multiple platforms.
Use a manifest in all situations because buildah can not create a manifest when a tag already exists.
Manifests for buildah and podman have no digest.
Buildah pushs the manifest to all tags and TaggedImage must ignore the incomplete URL.
@Baenimyr Baenimyr marked this pull request as draft April 29, 2025 19:17
@Baenimyr Baenimyr temporarily deployed to DockerHub E2E May 1, 2025 14:28 — with GitHub Actions Inactive
Benjamin Le Rohellec added 5 commits May 2, 2025 11:48
The manifest digest is written to a temporary file with the option --digestfile.
Push only to a random tag and let kbld create the other tags.
Benjamin Le Rohellec added 4 commits May 11, 2025 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant