@@ -34,6 +34,10 @@ func buildMinirootFS() *cobra.Command {
3434 var buildArch string
3535 var sbomPath string
3636 var ignoreSignatures bool
37+ var extraKeys []string
38+ var extraBuildRepos []string
39+ var extraRuntimeRepos []string
40+ var extraPackages []string
3741
3842 cmd := & cobra.Command {
3943 Use : "build-minirootfs" ,
@@ -44,6 +48,10 @@ func buildMinirootFS() *cobra.Command {
4448 RunE : func (cmd * cobra.Command , args []string ) error {
4549 return BuildMinirootFSCmd (cmd .Context (),
4650 build .WithConfig (args [0 ], []string {}),
51+ build .WithExtraKeys (extraKeys ),
52+ build .WithExtraBuildRepos (extraBuildRepos ),
53+ build .WithExtraRuntimeRepos (extraRuntimeRepos ),
54+ build .WithExtraPackages (extraPackages ),
4755 build .WithTarball (args [1 ]),
4856 build .WithBuildDate (buildDate ),
4957 build .WithSBOM (sbomPath ),
@@ -57,6 +65,10 @@ func buildMinirootFS() *cobra.Command {
5765 cmd .Flags ().StringVar (& buildArch , "build-arch" , runtime .GOARCH , "architecture to build for -- default is Go runtime architecture" )
5866 cmd .Flags ().StringVar (& sbomPath , "sbom-path" , "" , "generate an SBOM" )
5967 cmd .Flags ().BoolVar (& ignoreSignatures , "ignore-signatures" , false , "ignore repository signature verification" )
68+ cmd .Flags ().StringSliceVarP (& extraKeys , "keyring-append" , "k" , []string {}, "path to extra keys to include in the keyring" )
69+ cmd .Flags ().StringSliceVarP (& extraBuildRepos , "build-repository-append" , "b" , []string {}, "path to extra repositories to include" )
70+ cmd .Flags ().StringSliceVarP (& extraRuntimeRepos , "repository-append" , "r" , []string {}, "path to extra repositories to include" )
71+ cmd .Flags ().StringSliceVarP (& extraPackages , "package-append" , "p" , []string {}, "extra packages to include" )
6072
6173 return cmd
6274}
0 commit comments