databricks-cli/bundle/phases/build.go

23 lines
477 B
Go

package phases
import (
"github.com/databricks/cli/bundle"
"github.com/databricks/cli/bundle/artifacts"
"github.com/databricks/cli/bundle/config/interpolation"
)
// The build phase builds artifacts.
func Build() bundle.Mutator {
return newPhase(
"build",
[]bundle.Mutator{
artifacts.DetectPackages(),
artifacts.InferMissingProperties(),
artifacts.BuildAll(),
interpolation.Interpolate(
interpolation.IncludeLookupsInPath("artifacts"),
),
},
)
}