mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-12-25 16:09:10 +08:00
Add option to build/bake to override instance
This helps prevent race conditions with concurrent build invocations. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
11
commands/builder.go
Normal file
11
commands/builder.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package commands
|
||||
|
||||
import "github.com/spf13/pflag"
|
||||
|
||||
type builderOptions struct {
|
||||
builder string
|
||||
}
|
||||
|
||||
func builderFlags(options *builderOptions, flags *pflag.FlagSet) {
|
||||
flags.StringVar(&options.builder, "builder", "", "Override the configured builder instance")
|
||||
}
|
||||
Reference in New Issue
Block a user