// BuildStepImage Build the image for a step
BuildStepImage Build the image for a step
// BuildStepImage Build the image for a step
func BuildStepImage(coordinator coordinator.Coordinator, sc *context.StepContext) error {
	step := sc.NextStep
	stepName := step.StepName(sc.NextStepSelector)
	if step.UsesPreviousStep() {
		err := commitPreviousStepImage(coordinator, sc, step)
		if err != nil {
			return err
		}
	}
	if step.Cached() {
		fmt.Println("Building image and running step " + stepName + ":")
	} else {
		fmt.Println("Building image for step " + stepName + ":")
	}
	step.State.GeneratedImage = v1.GenerateImageName()
	options := createBuildOptionsForStepImage(&sc.WorkflowContext.Workflow.Spec, step)
	err := coordinator.BuildImage(sc.WorkflowContext.Context, step.State.GeneratedImage, options)
	if err != nil {
		return err
	}
	log.Debugf(`Image %v was built for step "%v"`, step.State.GeneratedImage, stepName)
	return nil
}
func BuildStepImage ( coordinator coordinator . Coordinator , sc * context . StepContext ) error { step := sc . NextStep stepName := step . StepName ( sc . NextStepSelector ) if step . UsesPreviousStep ( ) { err := commitPreviousStepImage ( coordinator , sc , step ) if err != nil { return err } } if step . Cached ( ) { fmt . Println ( " " + stepName + " " ) } else { fmt . Println ( " " + stepName + " " ) } step . State . GeneratedImage = v1 . GenerateImageName ( ) options := createBuildOptionsForStepImage ( & sc . WorkflowContext . Workflow . Spec , step ) err := coordinator . BuildImage ( sc . WorkflowContext . Context , step . State . GeneratedImage , options ) if err != nil { return err } log . Debugf ( `Image %v was built for step "%v"` , step . State . GeneratedImage , stepName ) return nil }
BuildStepImage Build the image for a step
BuildStepImage Build the image for a step
// collectCherryPicks(coordinator, sc, step)