mirror of
https://github.com/mudler/luet.git
synced 2025-08-02 07:59:22 +00:00
Don't replace buildertaggedImage if there aren't build steps
This commit is contained in:
parent
338f310d67
commit
6bf7368993
@ -346,11 +346,13 @@ func (cs *LuetCompiler) buildPackageImage(image, buildertaggedImage, packageImag
|
||||
return builderOpts, runnerOpts, errors.Wrap(err, "Could not generate image definition")
|
||||
}
|
||||
|
||||
if len(p.GetPreBuildSteps()) == 0 {
|
||||
noBuildInstructions := len(p.BuildSteps()) == 0 && len(p.GetPreBuildSteps()) == 0
|
||||
|
||||
if len(p.GetPreBuildSteps()) == 0 && !noBuildInstructions {
|
||||
buildertaggedImage = image
|
||||
}
|
||||
|
||||
if len(p.BuildSteps()) == 0 || len(p.BuildSteps()) == 0 && len(p.GetPreBuildSteps()) == 0 {
|
||||
if len(p.BuildSteps()) == 0 || noBuildInstructions {
|
||||
packageImage = buildertaggedImage
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user