feat: support long syntax for image names and build tags#13709
Open
ssam18 wants to merge 1 commit intodocker:mainfrom
Open
feat: support long syntax for image names and build tags#13709ssam18 wants to merge 1 commit intodocker:mainfrom
ssam18 wants to merge 1 commit intodocker:mainfrom
Conversation
This adds support for specifying image references using a map with name/tag/digest fields instead of a plain string, making it possible to use YAML anchors for version management in compose files. Depends on compose-spec/compose-go#NNN (ssam18/compose-go feat/image-long-syntax) Signed-off-by: Samaresh Kumar Singh <[email protected]>
e776ed4 to
61132b6
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.
Users can now write
imageas a map withname,tag, anddigestfields instead of a plain string. The same long syntax works for entries inbuild.tags, so a single YAML anchor can drive both the service image and the build tags without string interpolation tricks.The core parsing changes live in compose-spec/compose-go (see ssam18/compose-go feat/image-long-syntax); this PR wires in that dependency and adds loader-level tests. Once the upstream compose-go PR is merged and released, the replace directive here will be swapped for a normal version bump.
Example usage: