2022-12-12 11:49:25 +00:00
|
|
|
package phases
|
|
|
|
|
|
|
|
import (
|
2023-05-16 16:35:39 +00:00
|
|
|
"github.com/databricks/cli/bundle"
|
|
|
|
"github.com/databricks/cli/bundle/artifacts"
|
|
|
|
"github.com/databricks/cli/bundle/config/interpolation"
|
2022-12-12 11:49:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// The build phase builds artifacts.
|
|
|
|
func Build() bundle.Mutator {
|
|
|
|
return newPhase(
|
|
|
|
"build",
|
|
|
|
[]bundle.Mutator{
|
2023-07-26 10:07:26 +00:00
|
|
|
artifacts.DetectPackages(),
|
|
|
|
artifacts.InferMissingProperties(),
|
2022-12-12 11:49:25 +00:00
|
|
|
artifacts.BuildAll(),
|
|
|
|
interpolation.Interpolate(
|
|
|
|
interpolation.IncludeLookupsInPath("artifacts"),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|