Rename PreBuildSteps in Prelude

This commit is contained in:
Ettore Di Giacinto
2019-11-10 10:45:13 +01:00
parent 8bebd2a7f2
commit a9bf9223c9

View File

@@ -24,12 +24,12 @@ import (
) )
type LuetCompilationSpec struct { type LuetCompilationSpec struct {
Steps []string `json:"steps"` // Are run inside a container and the result layer diff is saved Steps []string `json:"steps"` // Are run inside a container and the result layer diff is saved
PreBuildSteps []string `json:"pre_steps"` // Are run inside the image which will be our builder Prelude []string `json:"prelude"` // Are run inside the image which will be our builder
Image string `json:"image"` Image string `json:"image"`
Seed string `json:"seed"` Seed string `json:"seed"`
Package pkg.Package `json:"-"` Package pkg.Package `json:"-"`
OutputPath string `json:"-"` // Where the build processfiles go OutputPath string `json:"-"` // Where the build processfiles go
} }
func NewLuetCompilationSpec(b []byte, p pkg.Package) (CompilationSpec, error) { func NewLuetCompilationSpec(b []byte, p pkg.Package) (CompilationSpec, error) {
@@ -51,7 +51,7 @@ func (cs *LuetCompilationSpec) BuildSteps() []string {
} }
func (cs *LuetCompilationSpec) GetPreBuildSteps() []string { func (cs *LuetCompilationSpec) GetPreBuildSteps() []string {
return cs.PreBuildSteps return cs.Prelude
} }
func (cs *LuetCompilationSpec) GetSeedImage() string { func (cs *LuetCompilationSpec) GetSeedImage() string {