feat(publish-kustomize-bundle): multi-image composite action (draft) - #88
Draft
scotwells wants to merge 1 commit into
Draft
feat(publish-kustomize-bundle): multi-image composite action (draft)#88scotwells wants to merge 1 commit into
scotwells wants to merge 1 commit into
Conversation
Add a composite action that stamps multiple images into a Kustomize bundle
and pushes it, running as a step inside the caller's job so it can consume
per-image tags from earlier build steps. Mirrors the reusable workflow's
docker/metadata-action tag logic and flux push loop, generalizing the single
image-name to an `images` list of `{ path, name, tag }` entries where `tag`
defaults to the bundle's first computed tag.
The existing reusable workflow is left in place as the single-image,
dedicated-job publisher.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
A composite action that stamps multiple images into a Kustomize bundle and pushes it — the case the current reusable workflow can't cover (it pins a single image). Because it runs as a step in the caller's job, it reads image tags straight from earlier build steps and stamps them all into one bundle before pushing — no separate job, no re-checkout.
Usage
Notes
imagesentry is{ path, name, tag };tagis optional and defaults to the bundle's computed tag (only needed when images come from separate builds). Full input/output tables are in the action README.secrets:, so the job mustcheckout,docker/loginto ghcr, and grantpackages: writebefore this step (theflux pushauthenticates via that login).Status
Draft sketch:
actionlint+shellcheckpass, and theimagesparse +kustomize edit set imageare proven against a scratch kustomization; not yet exercised in a live CI run.Open question for review: keep both, or deprecate the reusable workflow? This subsumes the single-image case (a one-entry list), but the workflow's dedicated-job +
secrets: inheritmodel is simpler for CRD-only publishes.