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{
|
|
|
|
artifacts.BuildAll(),
|
|
|
|
interpolation.Interpolate(
|
|
|
|
interpolation.IncludeLookupsInPath("artifacts"),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|