add --with-env flag to publish command

this flag allow publishing env variables in the Compose OCI artifact

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
Guillaume Lours 2025-01-21 09:51:56 +01:00
parent 4b70ff0ccd
commit 840288895e
11 changed files with 196 additions and 11 deletions

View file

@ -422,6 +422,7 @@ const (
// PublishOptions group options of the Publish API
type PublishOptions struct {
ResolveImageDigests bool
WithEnvironment bool
OCIVersion OCIVersion
}