Skip to content

Commit b892734

Browse files
leodidoona-agent
andcommitted
feat(config): add exportToCache field to DockerPkgConfig
Add optional exportToCache boolean field to DockerPkgConfig to control whether Docker images are pushed directly to registries or exported to cache for signing. - Default: false (maintains backward compatibility) - When true: images exported to cache instead of pushed - Enables SLSA Level 3 compliance workflow Co-authored-by: Ona <[email protected]>
1 parent 7e31b0f commit b892734

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/leeway/package.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,11 @@ type DockerPkgConfig struct {
546546
BuildArgs map[string]string `yaml:"buildArgs,omitempty"`
547547
Squash bool `yaml:"squash,omitempty"`
548548
Metadata map[string]string `yaml:"metadata,omitempty"`
549+
550+
// ExportToCache controls whether Docker images are exported to cache instead of pushed immediately.
551+
// When true, images are saved as .tar files and go through the standard cache flow.
552+
// When false (default), images are pushed directly to registries (legacy behavior).
553+
ExportToCache bool `yaml:"exportToCache,omitempty"`
549554
}
550555

551556
// AdditionalSources returns a list of unresolved sources coming in through this configuration

0 commit comments

Comments
 (0)