mirror of
https://github.com/mudler/luet.git
synced 2025-09-04 08:45:40 +00:00
Add retrieve to compilation spec
It allows to copy build artifact during buildtime. In this way artifacts between different seed images can be shared ``` retrieve: - a-test-1.0.package.* - https://... ``` They will be available under WORKDIR
This commit is contained in:
@@ -256,6 +256,15 @@ func (cs *LuetCompiler) compileWithImage(image, buildertaggedImage, packageImage
|
||||
return nil, errors.Wrap(err, "Could not copy package sources")
|
||||
|
||||
}
|
||||
|
||||
// Copy file into the build context, the compilespec might have requested to do so.
|
||||
if len(p.GetRetrieve()) > 0 {
|
||||
err := p.CopyRetrieves(buildDir)
|
||||
if err != nil {
|
||||
Warning("Failed copying retrieves", err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
if buildertaggedImage == "" {
|
||||
buildertaggedImage = cs.ImageRepository + "-" + p.GetPackage().GetFingerPrint() + "-builder"
|
||||
}
|
||||
|
Reference in New Issue
Block a user