feat(buildah): Support verbose logging option
@@ -231,6 +231,11 @@ func (t *builderTrait) buildahTask(e *Environment) (*v1.ImageTask, error) {
"docker://" + image,
}
+ if t.Verbose {
+ bud = append(bud[:2], append([]string{"--log-level=debug"}, bud[2:]...)...)
+ push = append(push[:2], append([]string{"--log-level=debug"}, push[2:]...)...)
+ }
+
if e.Platform.Status.Build.Registry.Insecure {
bud = append(bud[:2], append([]string{"--tls-verify=false"}, bud[2:]...)...)
push = append(push[:2], append([]string{"--tls-verify=false"}, push[2:]...)...)
