Skip to content

Commit

Permalink
feat(render): add --stub-tags option to explicitly ignore real tags
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
  • Loading branch information
alexey-igrychev committed Aug 5, 2024
1 parent e82fcc2 commit 6b387ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/werf/render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func NewCmd(ctx context.Context) *cobra.Command {
common.SetupCacheStagesStorageOptions(&commonCmdData, cmd)
common.SetupRepoOptions(&commonCmdData, cmd, common.RepoDataOptions{OptionalRepo: true})
common.SetupFinalRepo(&commonCmdData, cmd)
common.SetupStubTags(&commonCmdData, cmd)

common.SetupKubeConfig(&commonCmdData, cmd)
common.SetupKubeConfigBase64(&commonCmdData, cmd)
Expand Down Expand Up @@ -251,7 +252,7 @@ func runRender(ctx context.Context, imagesToProcess build.ImagesToProcess) error
return err
}

if addr != storage.LocalStorageAddress {
if !*commonCmdData.StubTags && addr != storage.LocalStorageAddress {
if err := common.DockerRegistryInit(ctx, &commonCmdData, registryMirrors); err != nil {
return err
}
Expand Down
2 changes: 2 additions & 0 deletions docs/_includes/reference/cli/werf_render.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ werf render [IMAGE_NAME...] [options]
--status-progress-period=5
Status progress period in seconds. Set -1 to stop showing status progress. Defaults to
$WERF_STATUS_PROGRESS_PERIOD_SECONDS or 5 seconds
--stub-tags=false
Use stubs instead of real tags (default $WERF_STUB_TAGS)
-S, --synchronization=''
Address of synchronizer for multiple werf processes to work with a single repo.

Expand Down

0 comments on commit 6b387ef

Please sign in to comment.