container: support additional container images per repo - #371
Merged
Conversation
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.
prestist
force-pushed
the
butane-container-template
branch
from
August 12, 2026 18:04
824ab9b to
87d89c4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-validateandbutanecontainers from the same repo after the Butane merge (#2235).Changes
container/container.yml-- Add a{% for %}loop overadditional_containersthat renders extra jobs, each with its own Dockerfile and push targetcontainer/container-rebuild.yml-- Same change for the rebuild workflowconfig.yaml-- Addadditional_containersto ignition's config with the butane container (Dockerfile.butane->quay.io/coreos/butane)Rendered output
Ignition's
container.ymlnow has two jobs:build-container-- buildsDockerfile.validate, pushes toquay.io/coreos/ignition-validate(unchanged)build-container-butane-- buildsDockerfile.butane, pushes toquay.io/coreos/butane(new)Other repos are unaffected (
additional_containersdefaults to an empty list).Related