github.com/databricks/cli@v0.203.0/bundle/phases/build.go (about)

     1  package phases
     2  
     3  import (
     4  	"github.com/databricks/cli/bundle"
     5  	"github.com/databricks/cli/bundle/artifacts"
     6  	"github.com/databricks/cli/bundle/config/interpolation"
     7  )
     8  
     9  // The build phase builds artifacts.
    10  func Build() bundle.Mutator {
    11  	return newPhase(
    12  		"build",
    13  		[]bundle.Mutator{
    14  			artifacts.DetectPackages(),
    15  			artifacts.InferMissingProperties(),
    16  			artifacts.BuildAll(),
    17  			interpolation.Interpolate(
    18  				interpolation.IncludeLookupsInPath("artifacts"),
    19  			),
    20  		},
    21  	)
    22  }