mirror of
https://github.com/mudler/luet.git
synced 2025-09-08 02:29:38 +00:00
⚙️ Enhancements to final images building
This commit is multi-fold and impacts several areas: - Don't re-generate final artifact locally if already present while building with `requires_final_images`. - Expose to CLI a way to build final images without pushing them. - The packages listed with `requires_final_images` now are evaluated by the solver so the full deptree is took into account Fixes: https://github.com/mudler/luet/issues/294
This commit is contained in:
@@ -49,6 +49,9 @@ type Compiler struct {
|
||||
// Tells wether to push final container images after building
|
||||
PushFinalImages bool
|
||||
PushFinalImagesForce bool
|
||||
|
||||
GenerateFinalImages bool
|
||||
|
||||
// Image repository to push to
|
||||
PushFinalImagesRepository string
|
||||
|
||||
@@ -99,6 +102,11 @@ func WithFinalRepository(r string) func(cfg *Compiler) error {
|
||||
}
|
||||
}
|
||||
|
||||
func EnableGenerateFinalImages(cfg *Compiler) error {
|
||||
cfg.GenerateFinalImages = true
|
||||
return nil
|
||||
}
|
||||
|
||||
func EnablePushFinalImages(cfg *Compiler) error {
|
||||
cfg.PushFinalImages = true
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user