Skip to content

container: support additional container images per repo - #371

Merged
prestist merged 1 commit into
coreos:mainfrom
prestist:butane-container-template
Aug 13, 2026
Merged

container: support additional container images per repo#371
prestist merged 1 commit into
coreos:mainfrom
prestist:butane-container-template

Conversation

@prestist

@prestist prestist commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Add support for repos that need to build multiple container images from different Dockerfiles. This is needed for ignition, which now builds both ignition-validate and butane containers from the same repo after the Butane merge (#2235).

Changes

  • container/container.yml -- Add a {% for %} loop over additional_containers that renders extra jobs, each with its own Dockerfile and push target
  • container/container-rebuild.yml -- Same change for the rebuild workflow
  • config.yaml -- Add additional_containers to ignition's config with the butane container (Dockerfile.butane -> quay.io/coreos/butane)

Rendered output

Ignition's container.yml now has two jobs:

  • build-container -- builds Dockerfile.validate, pushes to quay.io/coreos/ignition-validate (unchanged)
  • build-container-butane -- builds Dockerfile.butane, pushes to quay.io/coreos/butane (new)

Other repos are unaffected (additional_containers defaults to an empty list).

Related

Add additional_containers template variable that renders extra
jobs in container.yml and container-rebuild.yml. Each entry has
a name, file (Dockerfile), and push (list of registries).

Use this to add the butane container image to ignition's CI,
building from Dockerfile.butane and pushing to quay.io/coreos/butane.

@yasminvalim yasminvalim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@prestist
prestist merged commit 336dd39 into coreos:main Aug 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants