Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): support using only specific images from werf.yaml or dis…
…abling images for all werf commands * Specific images enabled by specifying positional arguments in all related commands: * werf build * werf converge * werf render * werf bundle publish * werf export * werf config graph * werf helm get-autogenerated-values * werf compose * Support --without-images option for all related commands except werf-build, werf-export and werf-config-graph commands. * Do not connect to repository and synchronization service when --without-images is used. Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
- Loading branch information
1 parent
b089f2d
commit c618043
Showing
19 changed files
with
235 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package common | ||
|
||
import "github.com/werf/werf/pkg/build" | ||
|
||
func GetImagesToProcess(onlyImages []string, withoutImages bool) build.ImagesToProcess { | ||
if withoutImages { | ||
return build.NewImagesToProcess(nil, true) | ||
} else if len(onlyImages) > 0 { | ||
return build.NewImagesToProcess(onlyImages, false) | ||
} | ||
return build.NewImagesToProcess(nil, false) | ||
} |
Oops, something went wrong.